Skip to content

Commit

Permalink
Some unused imports.
Browse files Browse the repository at this point in the history
  • Loading branch information
defnull committed Jun 24, 2011
1 parent d867fea commit 87a39d6
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions bottle.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@

from Cookie import SimpleCookie
from tempfile import TemporaryFile
from traceback import format_exc, print_exc
from urllib import urlencode, quote as urlquote, unquote as urlunquote
from urlparse import urlunsplit, urljoin, SplitResult as UrlSplitResult
from traceback import format_exc
from urllib import urlencode, quote as urlquote
from urlparse import urljoin, SplitResult as UrlSplitResult

try: from collections import MutableMapping as DictMixin
except ImportError: # pragma: no cover
Expand Down Expand Up @@ -646,7 +646,7 @@ def _handle(self, environ):
except HTTPResponse, r:
return r
except RouteReset: # Route reset requested by the callback or a plugin.
del self.ccache[handle]
del self.ccache[environ['route.handle']]
return self._handle(environ) # Try again.
except (KeyboardInterrupt, SystemExit, MemoryError):
raise
Expand Down Expand Up @@ -1976,11 +1976,10 @@ class GeventServer(ServerAdapter):
issues: No streaming, no pipelining, no SSL.
"""
def run(self, handler):
from gevent import wsgi as wsgi_fast, pywsgi as wsgi, monkey
from gevent import wsgi as wsgi_fast, pywsgi, monkey
if self.options.get('monkey', True):
monkey.patch_all()
if self.options.get('fast', False):
wsgi = wsgi_fast
wsgi = wsgi_fast if self.options.get('fast') else pywsgi
wsgi.WSGIServer((self.host, self.port), handler).serve_forever()


Expand Down

0 comments on commit 87a39d6

Please sign in to comment.