Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Re-organized imports in handler modules to adhere to Django coding st…

…yle.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@6826 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit c882d7c99c94a7806eceb032b79b67a82e590f21 1 parent 1921554
@gdub gdub authored
View
5 django/core/handlers/base.py
@@ -1,7 +1,8 @@
+import sys
+
+from django import http
from django.core import signals
from django.dispatch import dispatcher
-from django import http
-import sys
class BaseHandler(object):
# Changes that are always applied to a response (in this order).
View
9 django/core/handlers/modpython.py
@@ -1,11 +1,12 @@
-from django.core.handlers.base import BaseHandler
+import os
+from pprint import pformat
+
+from django import http
from django.core import signals
+from django.core.handlers.base import BaseHandler
from django.dispatch import dispatcher
from django.utils import datastructures
from django.utils.encoding import force_unicode
-from django import http
-from pprint import pformat
-import os
# NOTE: do *not* import settings (or any module which eventually imports
# settings) until after ModPythonHandler has been called; otherwise os.environ
View
4 django/core/handlers/wsgi.py
@@ -5,12 +5,12 @@
except ImportError:
from StringIO import StringIO
-from django.core.handlers.base import BaseHandler
+from django import http
from django.core import signals
+from django.core.handlers.base import BaseHandler
from django.dispatch import dispatcher
from django.utils import datastructures
from django.utils.encoding import force_unicode
-from django import http
# See http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html
STATUS_CODE_TEXT = {
Please sign in to comment.
Something went wrong with that request. Please try again.