equal
deleted
inserted
replaced
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): |