Mercurial > public > mercurial-scm > hg
comparison mercurial/context.py @ 41759:aaad36b88298
cleanup: use () to wrap long lines instead of \
This is a little less brittle, and often helps indentation. In a
surprising number of cases the entire cleanup was deleting the \, as
the expression was *already* parenthesized in a workable way.
Differential Revision: https://phab.mercurial-scm.org/D5993
author | Augie Fackler <augie@google.com> |
---|---|
date | Wed, 20 Feb 2019 19:28:51 -0500 |
parents | a4358f7345b4 |
children | cd7059d17cb2 |
comparison
equal
deleted
inserted
replaced
41758:15d3facfa40a | 41759:aaad36b88298 |
---|---|
981 self._repo = repo | 981 self._repo = repo |
982 self._path = path | 982 self._path = path |
983 | 983 |
984 assert (changeid is not None | 984 assert (changeid is not None |
985 or fileid is not None | 985 or fileid is not None |
986 or changectx is not None), \ | 986 or changectx is not None), ( |
987 ("bad args: changeid=%r, fileid=%r, changectx=%r" | 987 "bad args: changeid=%r, fileid=%r, changectx=%r" |
988 % (changeid, fileid, changectx)) | 988 % (changeid, fileid, changectx)) |
989 | 989 |
990 if filelog is not None: | 990 if filelog is not None: |
991 self._filelog = filelog | 991 self._filelog = filelog |
992 | 992 |
993 if changeid is not None: | 993 if changeid is not None: |