Commit b9db129a authored by Russell Keith-Magee's avatar Russell Keith-Magee
Browse files

[1.2.X] Fixed #13062 -- Ensure that runserver exposes all warnings requested...

[1.2.X] Fixed #13062 -- Ensure that runserver exposes all warnings requested at the command line. Thanks to gremmie for the report, and claudep for the patch.

Backport of r15233 from trunk.

git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@15234 bcc190cf-cafb-0310-a4f2-bffc1f526a37
parent aeddab3f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -75,7 +75,7 @@ def reloader_thread():

def restart_with_reloader():
    while True:
        args = [sys.executable] + sys.argv
        args = [sys.executable] + ['-W%s' % o for o in sys.warnoptions] + sys.argv
        if sys.platform == "win32":
            args = ['"%s"' % arg for arg in args]
        new_environ = os.environ.copy()