From c882d7c99c94a7806eceb032b79b67a82e590f21 Mon Sep 17 00:00:00 2001 From: Gary Wilson Jr Date: Sun, 2 Dec 2007 02:22:19 +0000 Subject: [PATCH] Re-organized imports in handler modules to adhere to Django coding style. git-svn-id: http://code.djangoproject.com/svn/django/trunk@6826 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- django/core/handlers/base.py | 5 +++-- django/core/handlers/modpython.py | 9 +++++---- django/core/handlers/wsgi.py | 4 ++-- 3 files changed, 10 insertions(+), 8 deletions(-) diff --git a/django/core/handlers/base.py b/django/core/handlers/base.py index 1796cae8eac..17a24d6f605 100644 --- a/django/core/handlers/base.py +++ b/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). diff --git a/django/core/handlers/modpython.py b/django/core/handlers/modpython.py index e81a65be4d1..ebf79295e03 100644 --- a/django/core/handlers/modpython.py +++ b/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 diff --git a/django/core/handlers/wsgi.py b/django/core/handlers/wsgi.py index 94575ca3693..df2ba19b65d 100644 --- a/django/core/handlers/wsgi.py +++ b/django/core/handlers/wsgi.py @@ -5,12 +5,12 @@ try: 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 = {