Ticket #19942: 19942-1.diff

File 19942-1.diff, 780 bytes (added by Claude Paroz, 12 years ago)
  • django/core/management/utils.py

    diff --git a/django/core/management/utils.py b/django/core/management/utils.py
    index 769f972..d6d0e41 100644
    a b  
    11import os
    22from subprocess import PIPE, Popen
    33
     4from django.utils.encoding import force_text, DEFAULT_LOCALE_ENCODING
     5
    46
    57def popen_wrapper(args):
    68    """
    def popen_wrapper(args):  
    1113    p = Popen(args, shell=False, stdout=PIPE, stderr=PIPE,
    1214              close_fds=os.name != 'nt', universal_newlines=True)
    1315    output, errors = p.communicate()
    14     return output, errors, p.returncode
     16    return output, force_text(errors, DEFAULT_LOCALE_ENCODING, strings_only=True), p.returncode
    1517
    1618def handle_extensions(extensions=('html',), ignored=('py',)):
    1719    """
Back to Top