Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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
Gary Wilson Jr. authored December 02, 2007
5  django/core/handlers/base.py
... ...
@@ -1,7 +1,8 @@
  1
+import sys
  2
+
  3
+from django import http
1 4
 from django.core import signals
2 5
 from django.dispatch import dispatcher
3  
-from django import http
4  
-import sys
5 6
 
6 7
 class BaseHandler(object):
7 8
     # Changes that are always applied to a response (in this order).
9  django/core/handlers/modpython.py
... ...
@@ -1,11 +1,12 @@
1  
-from django.core.handlers.base import BaseHandler
  1
+import os
  2
+from pprint import pformat
  3
+
  4
+from django import http
2 5
 from django.core import signals
  6
+from django.core.handlers.base import BaseHandler
3 7
 from django.dispatch import dispatcher
4 8
 from django.utils import datastructures
5 9
 from django.utils.encoding import force_unicode
6  
-from django import http
7  
-from pprint import pformat
8  
-import os
9 10
 
10 11
 # NOTE: do *not* import settings (or any module which eventually imports
11 12
 # settings) until after ModPythonHandler has been called; otherwise os.environ
4  django/core/handlers/wsgi.py
@@ -5,12 +5,12 @@
5 5
 except ImportError:
6 6
     from StringIO import StringIO
7 7
 
8  
-from django.core.handlers.base import BaseHandler
  8
+from django import http
9 9
 from django.core import signals
  10
+from django.core.handlers.base import BaseHandler
10 11
 from django.dispatch import dispatcher
11 12
 from django.utils import datastructures
12 13
 from django.utils.encoding import force_unicode
13  
-from django import http
14 14
 
15 15
 # See http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html
16 16
 STATUS_CODE_TEXT = {

0 notes on commit c882d7c

Please sign in to comment.
Something went wrong with that request. Please try again.