diff hgext/gpg.py @ 37120:a8a902d7176e

procutil: bulk-replace function calls to point to new module
author Yuya Nishihara <yuya@tcha.org>
date Sat, 24 Mar 2018 15:10:51 +0900
parents 5bc7ff103081
children aac4be30e250
line wrap: on
line diff
--- a/hgext/gpg.py	Sat Mar 24 15:09:33 2018 +0900
+++ b/hgext/gpg.py	Sat Mar 24 15:10:51 2018 +0900
@@ -19,9 +19,11 @@
     node as hgnode,
     pycompat,
     registrar,
-    util,
 )
-from mercurial.utils import dateutil
+from mercurial.utils import (
+    dateutil,
+    procutil,
+)
 
 cmdtable = {}
 command = registrar.command(cmdtable)
@@ -52,7 +54,7 @@
 
     def sign(self, data):
         gpgcmd = "%s --sign --detach-sign%s" % (self.path, self.key)
-        return util.filter(data, gpgcmd)
+        return procutil.filter(data, gpgcmd)
 
     def verify(self, data, sig):
         """ returns of the good and bad signatures"""
@@ -69,7 +71,7 @@
             fp.close()
             gpgcmd = ("%s --logger-fd 1 --status-fd 1 --verify "
                       "\"%s\" \"%s\"" % (self.path, sigfile, datafile))
-            ret = util.filter("", gpgcmd)
+            ret = procutil.filter("", gpgcmd)
         finally:
             for f in (sigfile, datafile):
                 try: