Changeset 3029 for trunk/packages/invirt-base/python
- Timestamp:
- Jul 6, 2010, 12:09:08 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/packages/invirt-base/python/invirt/common.py
r2920 r3029 83 83 kwargs['stdout'] = subprocess.PIPE 84 84 if 'stderr' not in kwargs: 85 kwargs['stderr'] = subprocess. STDOUT85 kwargs['stderr'] = subprocess.PIPE 86 86 p = subprocess.Popen(popen_args, *args, **kwargs) 87 out, _= p.communicate(stdin_str)87 out, err = p.communicate(stdin_str) 88 88 if p.returncode: 89 raise subprocess.CalledProcessError(p.returncode, popen_args, out) 89 raise subprocess.CalledProcessError(p.returncode, '%s, stdout: %s, stderr: %s' % 90 (popen_args, out, err)) 90 91 return out 91 92
Note: See TracChangeset
for help on using the changeset viewer.