mirror of
https://github.com/ansible/awx.git
synced 2026-01-31 17:18:59 -03:30
Misc Python 3 changes: execfile(), file(), reduce(), StandardError
This commit is contained in:
@@ -31,7 +31,7 @@ def has_bom(fn):
|
||||
return sample.startswith((codecs.BOM_UTF8, codecs.BOM_UTF16_LE, codecs.BOM_UTF16_BE))
|
||||
|
||||
|
||||
def popen_wrapper(args, os_err_exc_type=StandardError, stdout_encoding='utf-8'):
|
||||
def popen_wrapper(args, os_err_exc_type=Exception, stdout_encoding='utf-8'):
|
||||
"""
|
||||
Friendly wrapper around Popen.
|
||||
Returns stdout output, stderr output and OS status code.
|
||||
|
||||
Reference in New Issue
Block a user