Kaydet (Commit) 8f14ed6c authored tarafından Jon Dufresne's avatar Jon Dufresne Kaydeden (comit) Tim Graham

Removed unused os_err_exc_type kwarg from core.management.utils.popen_wrapper().

Unused since its introduction in 7fca4416.
üst 0a37ea56
...@@ -8,7 +8,7 @@ from django.utils.encoding import DEFAULT_LOCALE_ENCODING, force_text ...@@ -8,7 +8,7 @@ from django.utils.encoding import DEFAULT_LOCALE_ENCODING, force_text
from .base import CommandError from .base import CommandError
def popen_wrapper(args, os_err_exc_type=CommandError, stdout_encoding='utf-8'): def popen_wrapper(args, stdout_encoding='utf-8'):
""" """
Friendly wrapper around Popen. Friendly wrapper around Popen.
...@@ -17,7 +17,7 @@ def popen_wrapper(args, os_err_exc_type=CommandError, stdout_encoding='utf-8'): ...@@ -17,7 +17,7 @@ def popen_wrapper(args, os_err_exc_type=CommandError, stdout_encoding='utf-8'):
try: try:
p = Popen(args, shell=False, stdout=PIPE, stderr=PIPE, close_fds=os.name != 'nt') p = Popen(args, shell=False, stdout=PIPE, stderr=PIPE, close_fds=os.name != 'nt')
except OSError as err: except OSError as err:
raise os_err_exc_type('Error executing %s' % args[0]) from err raise CommandError('Error executing %s' % args[0]) from err
output, errors = p.communicate() output, errors = p.communicate()
return ( return (
force_text(output, stdout_encoding, strings_only=True, errors='strict'), force_text(output, stdout_encoding, strings_only=True, errors='strict'),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment