summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDusty Phillips <buchuki@gmail.com>2008-10-05 21:46:28 -0400
committerDusty Phillips <buchuki@gmail.com>2008-10-05 21:46:28 -0400
commit103d1a347a7515c67af7dbd3241a4970dd46faac (patch)
treef406476820abc269df2137afc690f55080e0656f
parentf583f6aa090199aa6577c1cdc00074f616515410 (diff)
drop a bunch of unusued imports
-rw-r--r--devel/views.py4
-rw-r--r--main/models.py1
-rw-r--r--main/tests.py4
-rw-r--r--packages/views.py7
-rwxr-xr-xscripts/reporead.py6
-rw-r--r--todolists/views.py2
6 files changed, 7 insertions, 17 deletions
diff --git a/devel/views.py b/devel/views.py
index 1c89ab00..b21f3495 100644
--- a/devel/views.py
+++ b/devel/views.py
@@ -2,11 +2,9 @@ from django import forms
from django.http import HttpResponse, HttpResponseRedirect
from django.contrib.auth.models import User
from archweb_dev.main.utils import render_response
-from archweb_dev.main.models import Package, Todolist, TodolistPkg
+from archweb_dev.main.models import Package, Todolist
from archweb_dev.main.models import Arch, Repo
from archweb_dev.main.models import UserProfile, News, Donor, Mirror
-from django.http import HttpResponse
-from django.template import Context, loader
def index(request):
try:
diff --git a/main/models.py b/main/models.py
index b1a68460..f8f86995 100644
--- a/main/models.py
+++ b/main/models.py
@@ -2,7 +2,6 @@ from django.db import models
from django.db.models import Q
from django.contrib.auth.models import User
from archweb_dev.main.middleware import get_user
-import re
###########################
### User Profile Class ####
diff --git a/main/tests.py b/main/tests.py
index d0e87729..543a0c13 100644
--- a/main/tests.py
+++ b/main/tests.py
@@ -1,8 +1,6 @@
## test cases
from django.test import TestCase
-from main.models import Mirror, Press, AltForum, Donor, News
-from main.models import Arch, Repo, Package, PackageFile, PackageDepend
-from main.models import Todolist, TodolistPkg, Wikipage
+from main.models import Package, PackageDepend
from django.contrib.auth.models import User
class ModelTest(TestCase):
diff --git a/packages/views.py b/packages/views.py
index 170320ea..09d76b3a 100644
--- a/packages/views.py
+++ b/packages/views.py
@@ -1,13 +1,10 @@
-from django.http import HttpResponse, HttpResponseRedirect
+from django.http import HttpResponseRedirect
from django.shortcuts import get_object_or_404
-from django.core.mail import send_mail
-from django.template import Context, loader
from django.contrib.auth.models import User
from datetime import datetime
from archweb_dev.main.utils import render_response
-from archweb_dev.main.models import Package, PackageFile, PackageDepend
+from archweb_dev.main.models import Package, PackageFile
from archweb_dev.main.models import Arch, Repo, Signoff
-from django.core.exceptions import ObjectDoesNotExist
def update(request):
diff --git a/scripts/reporead.py b/scripts/reporead.py
index 1e2dacf9..54fc3faa 100755
--- a/scripts/reporead.py
+++ b/scripts/reporead.py
@@ -33,7 +33,6 @@ REPOVARS = ['arch', 'backup', 'builddate', 'conflicts', 'csize',
import os
import re
import sys
-import gzip
import tarfile
import logging
from datetime import datetime
@@ -45,10 +44,9 @@ os.chdir(archweb_app_path)
sys.path[0] = archweb_app_path
import settings
setup_environ(settings)
-from pprint import pprint as pp
from cStringIO import StringIO
-from logging import CRITICAL,ERROR,WARNING,INFO,DEBUG
-from main.models import Arch, Package, PackageFile, PackageDepend, Repo
+from logging import WARNING,INFO
+from main.models import Arch, Package, Repo
class SomethingFishyException(Exception):
'''Raised when the database looks like its going to wipe out a bunch of
diff --git a/todolists/views.py b/todolists/views.py
index c0e60209..4553114a 100644
--- a/todolists/views.py
+++ b/todolists/views.py
@@ -1,6 +1,6 @@
from django import forms
-from django.http import HttpResponse
+from django.http import HttpResponseRedirect
from django.core.mail import send_mail
from django.shortcuts import get_object_or_404
from django.contrib.auth.decorators import permission_required