Mercurial > public > mercurial-scm > hg
diff mercurial/mail.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 | f0b6fbea00cf |
children | 00e4bd97b095 |
line wrap: on
line diff
--- 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)