robustcheckout: reformat with black
authorConnor Sheehan <sheehan@mozilla.com>
Wed, 08 Sep 2021 10:27:11 -0400
changeset 7737 24c40cb2395ef0121962c2e9bb344b39eade01d2
parent 7736 b7124647512521abc087d3d0c6d568888b3171cf
child 7738 72871ee0a7330a479c669a944deb02415bf8fddf
push id3869
push usercosheehan@mozilla.com
push dateWed, 08 Sep 2021 14:27:33 +0000
treeherderversion-control-tools@24c40cb2395e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
robustcheckout: reformat with black
hgext/robustcheckout/__init__.py
--- a/hgext/robustcheckout/__init__.py
+++ b/hgext/robustcheckout/__init__.py
@@ -501,24 +501,26 @@ def _docheckout(
         elif isinstance(e, urllibcompat.urlerr.urlerror):
             if isinstance(e.reason, socket.error):
                 ui.warn(b"socket error: %s\n" % pycompat.bytestr(str(e.reason)))
                 handlenetworkfailure()
                 return True
             else:
                 ui.warn(
                     b"unhandled URLError; reason type: %s; value: %s\n"
-                    % (pycompat.bytestr(e.reason.__class__.__name__),
-                       pycompat.bytestr(str(e.reason)))
+                    % (
+                        pycompat.bytestr(e.reason.__class__.__name__),
+                        pycompat.bytestr(str(e.reason)),
+                    )
                 )
         else:
             ui.warn(
                 b"unhandled exception during network operation; type: %s; "
-                b"value: %s\n" % (pycompat.bytestr(e.__class__.__name__),
-                                  pycompat.bytestr(str(e)))
+                b"value: %s\n"
+                % (pycompat.bytestr(e.__class__.__name__), pycompat.bytestr(str(e)))
             )
 
         return False
 
     # Perform sanity checking of store. We may or may not know the path to the
     # local store. It depends if we have an existing destvfs pointing to a
     # share. To ensure we always find a local store, perform the same logic
     # that Mercurial's pooled storage does to resolve the local store path.