D9429: osutil: reformat triple-quoted string so black doesn't confuse itself
durin42 (Augie Fackler)
phabricator at mercurial-scm.org
Fri Nov 27 22:09:10 UTC 2020
durin42 created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.
REPOSITORY
rHG Mercurial
BRANCH
default
REVISION DETAIL
https://phab.mercurial-scm.org/D9429
AFFECTED FILES
mercurial/pure/osutil.py
CHANGE DETAILS
diff --git a/mercurial/pure/osutil.py b/mercurial/pure/osutil.py
--- a/mercurial/pure/osutil.py
+++ b/mercurial/pure/osutil.py
@@ -293,7 +293,8 @@
'''mimics the read-only attributes of Python file objects
by raising 'TypeError: readonly attribute' if someone tries:
f = posixfile('foo.txt')
- f.name = 'bla' '''
+ f.name = 'bla'
+ '''
return self._file.__setattr__(name, value)
def __enter__(self):
To: durin42, #hg-reviewers
Cc: mercurial-patches, mercurial-devel
More information about the Mercurial-devel
mailing list