Mercurial > public > mercurial-scm > hg-stable
diff hgext/bugzilla.py @ 37123: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/hgext/bugzilla.py Sat Mar 24 15:09:33 2018 +0900 +++ b/hgext/bugzilla.py Sat Mar 24 15:10:51 2018 +0900 @@ -308,6 +308,7 @@ util, ) from mercurial.utils import ( + procutil, stringutil, ) @@ -527,13 +528,13 @@ except TypeError: cmd = cmdfmt % {'bzdir': bzdir, 'id': id, 'user': user} self.ui.note(_('running notify command %s\n') % cmd) - fp = util.popen('(%s) 2>&1' % cmd) + fp = procutil.popen('(%s) 2>&1' % cmd) out = fp.read() ret = fp.close() if ret: self.ui.warn(out) raise error.Abort(_('bugzilla notify command %s') % - util.explainexit(ret)[0]) + procutil.explainexit(ret)[0]) self.ui.status(_('done\n')) def get_user_id(self, user):