diff hgext/gpg.py @ 43346:6ada8a274b9c stable

formatting: run black version 19.10b0 on the codebase The latest version of black is out and contains the change we needed. So we can start using it now. note: `test-check-format.t` will complains about this changes because it still use `grey` and need to be migrated to `black`. See next changesets for this.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Tue, 29 Oct 2019 10:41:30 +0100
parents 8ff1ecfadcd1
children 9f70512ae2cf
line wrap: on
line diff
--- a/hgext/gpg.py	Sun Oct 27 20:16:59 2019 +0100
+++ b/hgext/gpg.py	Tue Oct 29 10:41:30 2019 +0100
@@ -76,10 +76,9 @@
             fp = os.fdopen(fd, r'wb')
             fp.write(data)
             fp.close()
-            gpgcmd = b"%s --logger-fd 1 --status-fd 1 --verify \"%s\" \"%s\"" % (
-                self.path,
-                sigfile,
-                datafile,
+            gpgcmd = (
+                b"%s --logger-fd 1 --status-fd 1 --verify \"%s\" \"%s\""
+                % (self.path, sigfile, datafile,)
             )
             ret = procutil.filter(b"", gpgcmd)
         finally: