Mercurial > public > mercurial-scm > hg
comparison mercurial/ui.py @ 25149:3f0744eeaeaf
cleanup: use __builtins__.any instead of util.any
any() is available in all Python versions we support now.
author | Augie Fackler <augie@google.com> |
---|---|
date | Sat, 16 May 2015 14:30:07 -0400 |
parents | bd625cd4e5e7 |
children | 3ff4b07412ad |
comparison
equal
deleted
inserted
replaced
25148:3b5cd6f13dcc | 25149:3f0744eeaeaf |
---|---|
840 def system(self, cmd, environ={}, cwd=None, onerr=None, errprefix=None): | 840 def system(self, cmd, environ={}, cwd=None, onerr=None, errprefix=None): |
841 '''execute shell command with appropriate output stream. command | 841 '''execute shell command with appropriate output stream. command |
842 output will be redirected if fout is not stdout. | 842 output will be redirected if fout is not stdout. |
843 ''' | 843 ''' |
844 out = self.fout | 844 out = self.fout |
845 if util.any(s[1] for s in self._bufferstates): | 845 if any(s[1] for s in self._bufferstates): |
846 out = self | 846 out = self |
847 return util.system(cmd, environ=environ, cwd=cwd, onerr=onerr, | 847 return util.system(cmd, environ=environ, cwd=cwd, onerr=onerr, |
848 errprefix=errprefix, out=out) | 848 errprefix=errprefix, out=out) |
849 | 849 |
850 def traceback(self, exc=None, force=False): | 850 def traceback(self, exc=None, force=False): |