Show More
@@ -76,10 +76,9 b' class gpg(object):' | |||
|
76 | 76 | fp = os.fdopen(fd, r'wb') |
|
77 | 77 | fp.write(data) |
|
78 | 78 | fp.close() |
|
79 | gpgcmd = b"%s --logger-fd 1 --status-fd 1 --verify \"%s\" \"%s\"" % ( | |
|
80 | self.path, | |
|
81 | sigfile, | |
|
82 | datafile, | |
|
79 | gpgcmd = ( | |
|
80 | b"%s --logger-fd 1 --status-fd 1 --verify \"%s\" \"%s\"" | |
|
81 | % (self.path, sigfile, datafile,) | |
|
83 | 82 | ) |
|
84 | 83 | ret = procutil.filter(b"", gpgcmd) |
|
85 | 84 | finally: |
@@ -212,11 +212,9 b' class config(object):' | |||
|
212 | 212 | def read(self, path, fp=None, sections=None, remap=None): |
|
213 | 213 | if not fp: |
|
214 | 214 | fp = util.posixfile(path, b'rb') |
|
215 | assert ( | |
|
216 | getattr(fp, 'mode', r'rb') == r'rb' | |
|
217 | ), b'config files must be opened in binary mode, got fp=%r mode=%r' % ( | |
|
218 | fp, | |
|
219 | fp.mode, | |
|
215 | assert getattr(fp, 'mode', r'rb') == r'rb', ( | |
|
216 | b'config files must be opened in binary mode, got fp=%r mode=%r' | |
|
217 | % (fp, fp.mode,) | |
|
220 | 218 | ) |
|
221 | 219 | self.parse( |
|
222 | 220 | path, fp.read(), sections=sections, remap=remap, include=self.read |
@@ -1187,10 +1187,9 b' class filectx(basefilectx):' | |||
|
1187 | 1187 | |
|
1188 | 1188 | assert ( |
|
1189 | 1189 | changeid is not None or fileid is not None or changectx is not None |
|
1190 | ), b"bad args: changeid=%r, fileid=%r, changectx=%r" % ( | |
|
1191 | changeid, | |
|
1192 | fileid, | |
|
1193 | changectx, | |
|
1190 | ), ( | |
|
1191 | b"bad args: changeid=%r, fileid=%r, changectx=%r" | |
|
1192 | % (changeid, fileid, changectx,) | |
|
1194 | 1193 | ) |
|
1195 | 1194 | |
|
1196 | 1195 | if filelog is not None: |
@@ -867,13 +867,16 b' class treemanifest(object):' | |||
|
867 | 867 | return not self._dirs or all(m._isempty() for m in self._dirs.values()) |
|
868 | 868 | |
|
869 | 869 | def __repr__(self): |
|
870 | return b'<treemanifest dir=%s, node=%s, loaded=%s, dirty=%s at 0x%x>' % ( | |
|
870 | return ( | |
|
871 | b'<treemanifest dir=%s, node=%s, loaded=%s, dirty=%s at 0x%x>' | |
|
872 | % ( | |
|
871 | 873 | self._dir, |
|
872 | 874 | hex(self._node), |
|
873 | 875 | bool(self._loadfunc is _noop), |
|
874 | 876 | self._dirty, |
|
875 | 877 | id(self), |
|
876 | 878 | ) |
|
879 | ) | |
|
877 | 880 | |
|
878 | 881 | def dir(self): |
|
879 | 882 | '''The directory that this tree manifest represents, including a |
@@ -3116,9 +3116,7 b' class TestRunner(object):' | |||
|
3116 | 3116 | vlog("# Using HGTMP", _strpath(self._hgtmp)) |
|
3117 | 3117 | vlog("# Using PATH", os.environ["PATH"]) |
|
3118 | 3118 | vlog( |
|
3119 | "# Using", | |
|
3120 | _strpath(IMPL_PATH), | |
|
3121 | _strpath(osenvironb[IMPL_PATH]), | |
|
3119 | "# Using", _strpath(IMPL_PATH), _strpath(osenvironb[IMPL_PATH]), | |
|
3122 | 3120 | ) |
|
3123 | 3121 | vlog("# Writing to directory", _strpath(self._outputdir)) |
|
3124 | 3122 |
General Comments 0
You need to be logged in to leave comments.
Login now