hgext/logtoprocess.py
changeset 43076 2372284d9457
parent 40795 691c68bc1222
child 43077 687b865b95ad
--- a/hgext/logtoprocess.py	Sat Oct 05 10:29:34 2019 -0400
+++ b/hgext/logtoprocess.py	Sun Oct 06 09:45:02 2019 -0400
@@ -36,9 +36,7 @@
 
 import os
 
-from mercurial.utils import (
-    procutil,
-)
+from mercurial.utils import procutil
 
 # Note for extension authors: ONLY specify testedwith = 'ships-with-hg-core' for
 # extensions which SHIP WITH MERCURIAL. Non-mainline extensions should
@@ -46,6 +44,7 @@
 # leave the attribute unspecified.
 testedwith = 'ships-with-hg-core'
 
+
 class processlogger(object):
     """Map log events to external commands
 
@@ -66,10 +65,12 @@
             b'MSG1': msg,
         }
         # keyword arguments get prefixed with OPT_ and uppercased
-        env.update((b'OPT_%s' % key.upper(), value)
-                   for key, value in opts.items())
+        env.update(
+            (b'OPT_%s' % key.upper(), value) for key, value in opts.items()
+        )
         fullenv = procutil.shellenviron(env)
         procutil.runbgcommand(script, fullenv, shell=True)
 
+
 def uipopulate(ui):
     ui.setlogger(b'logtoprocess', processlogger(ui))