This is an archive of the discontinued Mercurial Phabricator instance.

formating: upgrade to black 20.8b1
ClosedPublic

Authored by durin42 on Nov 27 2020, 5:09 PM.

Details

Summary

This required a couple of small tweaks to un-confuse black, but now it
works. Big formatting changes come from:

  • Dramatically improved collection-splitting logic upstream
  • Black having a strong (correct IMO) opinion that """ is better than '''

Diff Detail

Repository
rHG Mercurial
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

durin42 created this revision.Nov 27 2020, 5:09 PM
mharbison72 accepted this revision.Nov 27 2020, 11:37 PM
This revision is now accepted and ready to land.Nov 27 2020, 11:37 PM
This revision was automatically updated to reflect the committed changes.

Amended this into setup.py, which was changed in D9427 with the older black:

@@ -816,7 +816,8 @@ class buildhgexe(build_ext):
                 if sys.version_info[0] >= 3:
                     fsdecode = os.fsdecode
                 dest = os.path.join(
-                    os.path.dirname(self.hgtarget), fsdecode(dllbasename),
+                    os.path.dirname(self.hgtarget),
+                    fsdecode(dllbasename),
                 )
 
                 if not os.path.exists(dest):
mercurial/commit.py