mercurial/mail.py
changeset 37120 a8a902d7176e
parent 37084 f0b6fbea00cf
child 37458 00e4bd97b095
--- a/mercurial/mail.py	Sat Mar 24 15:09:33 2018 +0900
+++ b/mercurial/mail.py	Sat Mar 24 15:10:51 2018 +0900
@@ -25,6 +25,7 @@
     util,
 )
 from .utils import (
+    procutil,
     stringutil,
 )
 
@@ -143,13 +144,13 @@
     cmdline = '%s -f %s %s' % (program, stringutil.email(sender),
                                ' '.join(map(stringutil.email, recipients)))
     ui.note(_('sending mail: %s\n') % cmdline)
-    fp = util.popen(cmdline, 'w')
+    fp = procutil.popen(cmdline, 'w')
     fp.write(msg)
     ret = fp.close()
     if ret:
         raise error.Abort('%s %s' % (
             os.path.basename(program.split(None, 1)[0]),
-            util.explainexit(ret)[0]))
+            procutil.explainexit(ret)[0]))
 
 def _mbox(mbox, sender, recipients, msg):
     '''write mails to mbox'''
@@ -184,7 +185,7 @@
             raise error.Abort(_('smtp specified as email transport, '
                                'but no smtp host configured'))
     else:
-        if not util.findexe(method):
+        if not procutil.findexe(method):
             raise error.Abort(_('%r specified as email transport, '
                                'but not in PATH') % method)