mirror of
https://github.com/frappe/gunicorn.git
synced 2026-01-14 11:09:11 +08:00
Used PyFlakes to detect and fix unneeded imports.
This commit is contained in:
parent
9422ee545e
commit
036735b456
@ -1,3 +1 @@
|
|||||||
from django.db import models
|
|
||||||
|
|
||||||
# Create your models here.
|
# Create your models here.
|
||||||
@ -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]
|
||||||
@ -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]
|
||||||
@ -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__
|
||||||
|
|||||||
@ -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):
|
||||||
|
|
||||||
|
|||||||
@ -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
|
||||||
|
|
||||||
|
|||||||
@ -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
|
||||||
|
|||||||
@ -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
|
||||||
|
|||||||
@ -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__)
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user