Used PyFlakes to detect and fix unneeded imports.

This commit is contained in:
Eric Florenzano 2010-01-21 13:23:35 -08:00
parent 9422ee545e
commit 036735b456
9 changed files with 8 additions and 22 deletions

View File

@ -1,3 +1 @@
from django.db import models
# Create your models here. # Create your models here.

View File

@ -1,6 +1,8 @@
from django.conf.urls.defaults import * from django.conf.urls.defaults import patterns, url, handler404, handler500
urlpatterns = patterns('', urlpatterns = patterns('',
url(r'^$', 'djangotest.testing.views.home'), url(r'^$', 'djangotest.testing.views.home'),
) )
def __exported_functionality__():
return [handler404, handler500]

View File

@ -5,4 +5,7 @@
from gunicorn.http.parser import HttpParser from gunicorn.http.parser import HttpParser
from gunicorn.http.request import HttpRequest, RequestError from gunicorn.http.request import HttpRequest, RequestError
from gunicorn.http.response import HttpResponse from gunicorn.http.response import HttpResponse
def __exported_functionality__():
return [HttpParser, HttpRequest, RequestError, HttpResponse]

View File

@ -4,14 +4,10 @@
# See the NOTICE for more information. # See the NOTICE for more information.
import errno
from ctypes import *
import re import re
import StringIO import StringIO
import socket
import sys import sys
from urllib import unquote from urllib import unquote
import array
import logging import logging
from gunicorn import __version__ from gunicorn import __version__

View File

@ -3,13 +3,7 @@
# This file is part of gunicorn released under the MIT license. # This file is part of gunicorn released under the MIT license.
# See the NOTICE for more information. # See the NOTICE for more information.
import errno from gunicorn.util import http_date, write, close
import socket
import select
import time
import os
from gunicorn.util import http_date, write, read_partial, close
class HttpResponse(object): class HttpResponse(object):

View File

@ -6,8 +6,6 @@
import logging import logging
import optparse as op import optparse as op
import os
import sys
from gunicorn.arbiter import Arbiter from gunicorn.arbiter import Arbiter

View File

@ -5,7 +5,6 @@
import errno import errno
import fcntl import fcntl
import os
import select import select
import socket import socket
import time import time

View File

@ -12,7 +12,6 @@ import signal
import socket import socket
import sys import sys
import tempfile import tempfile
import time
from gunicorn import http from gunicorn import http
from gunicorn import util from gunicorn import util

View File

@ -4,11 +4,8 @@
# This file is part of gunicorn released under the MIT license. # This file is part of gunicorn released under the MIT license.
# See the NOTICE for more information. # See the NOTICE for more information.
import inspect
import os import os
import re
import tempfile import tempfile
import unittest
dirname = os.path.dirname(__file__) dirname = os.path.dirname(__file__)