Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Removed some unused and duplicated imports.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@8194 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 2a7f7e1b97f45e8a5b0b38cf430a2062d59f62b5 1 parent c85c8f8
Gary Wilson Jr. authored August 02, 2008

Showing 1 changed file with 0 additions and 5 deletions. Show diff stats Hide diff stats

  1. 5  django/contrib/admin/sites.py
5  django/contrib/admin/sites.py
... ...
@@ -1,12 +1,10 @@
1 1
 import base64
2 2
 import cPickle as pickle
3  
-import datetime
4 3
 import re
5 4
 
6 5
 from django import http, template
7 6
 from django.contrib.admin import ModelAdmin
8 7
 from django.contrib.auth import authenticate, login
9  
-from django.core.exceptions import ImproperlyConfigured
10 8
 from django.db.models.base import ModelBase
11 9
 from django.shortcuts import render_to_response
12 10
 from django.utils.safestring import mark_safe
@@ -28,13 +26,11 @@ class NotRegistered(Exception):
28 26
     pass
29 27
 
30 28
 def _encode_post_data(post_data):
31  
-    from django.conf import settings
32 29
     pickled = pickle.dumps(post_data)
33 30
     pickled_md5 = md5_constructor(pickled + settings.SECRET_KEY).hexdigest()
34 31
     return base64.encodestring(pickled + pickled_md5)
35 32
 
36 33
 def _decode_post_data(encoded_data):
37  
-    from django.conf import settings
38 34
     encoded_data = base64.decodestring(encoded_data)
39 35
     pickled, tamper_check = encoded_data[:-32], encoded_data[-32:]
40 36
     if md5_constructor(pickled + settings.SECRET_KEY).hexdigest() != tamper_check:
@@ -205,7 +201,6 @@ def i18n_javascript(self, request):
205 201
         This takes into account the USE_I18N setting. If it's set to False, the
206 202
         generated JavaScript will be leaner and faster.
207 203
         """
208  
-        from django.conf import settings
209 204
         if settings.USE_I18N:
210 205
             from django.views.i18n import javascript_catalog
211 206
         else:

0 notes on commit 2a7f7e1

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