Patchwork D9429: osutil: reformat triple-quoted string so black doesn't confuse itself

login
register
mail settings
Submitter phabricator
Date Nov. 27, 2020, 10:09 p.m.
Message ID <differential-rev-PHID-DREV-zbwauxeazdmbtmf2nbam-req@mercurial-scm.org>
Download mbox | patch
Permalink /patch/47707/
State Superseded
Headers show

Comments

phabricator - Nov. 27, 2020, 10:09 p.m.
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




To: durin42, #hg-reviewers
Cc: mercurial-patches, mercurial-devel

Patch

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):