Mercurial > public > mercurial-scm > hg
comparison mercurial/context.py @ 43346:6ada8a274b9c stable
formatting: run black version 19.10b0 on the codebase
The latest version of black is out and contains the change we needed. So we can
start using it now.
note: `test-check-format.t` will complains about this changes because it still
use `grey` and need to be migrated to `black`. See next changesets for this.
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Tue, 29 Oct 2019 10:41:30 +0100 |
parents | 54e943b28101 |
children | 313e3a279828 |
comparison
equal
deleted
inserted
replaced
43345:dc3fe251de72 | 43346:6ada8a274b9c |
---|---|
1185 self._repo = repo | 1185 self._repo = repo |
1186 self._path = path | 1186 self._path = path |
1187 | 1187 |
1188 assert ( | 1188 assert ( |
1189 changeid is not None or fileid is not None or changectx is not None | 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" % ( | 1190 ), ( |
1191 changeid, | 1191 b"bad args: changeid=%r, fileid=%r, changectx=%r" |
1192 fileid, | 1192 % (changeid, fileid, changectx,) |
1193 changectx, | |
1194 ) | 1193 ) |
1195 | 1194 |
1196 if filelog is not None: | 1195 if filelog is not None: |
1197 self._filelog = filelog | 1196 self._filelog = filelog |
1198 | 1197 |