Mercurial > public > mercurial-scm > hg
comparison mercurial/bundle2.py @ 43421:be384a2052aa stable
py3: don't use bytes with vars() or __dict__
Inspired by D7227. These were all the remaining instances I could
find.
Differential Revision: https://phab.mercurial-scm.org/D7230
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Tue, 05 Nov 2019 08:42:42 -0800 |
parents | c17a63eb5d4c |
children | daade078f1f0 |
comparison
equal
deleted
inserted
replaced
43420:93aeebc90ff9 | 43421:be384a2052aa |
---|---|
855 have no way to know then the reply end, relying on the bundle to be | 855 have no way to know then the reply end, relying on the bundle to be |
856 interpreted to know its end. This is terrible and we are sorry, but we | 856 interpreted to know its end. This is terrible and we are sorry, but we |
857 needed to move forward to get general delta enabled. | 857 needed to move forward to get general delta enabled. |
858 """ | 858 """ |
859 yield self._magicstring | 859 yield self._magicstring |
860 assert b'params' not in vars(self) | 860 assert 'params' not in vars(self) |
861 paramssize = self._unpack(_fstreamparamsize)[0] | 861 paramssize = self._unpack(_fstreamparamsize)[0] |
862 if paramssize < 0: | 862 if paramssize < 0: |
863 raise error.BundleValueError( | 863 raise error.BundleValueError( |
864 b'negative bundle param size: %i' % paramssize | 864 b'negative bundle param size: %i' % paramssize |
865 ) | 865 ) |