diff --git a/gunicorn/http/__init__.py b/gunicorn/http/__init__.py index 61936ab8..b443b09e 100644 --- a/gunicorn/http/__init__.py +++ b/gunicorn/http/__init__.py @@ -3,6 +3,6 @@ # This file is part of gunicorn released under the MIT license. # See the NOTICE for more information. -from gunicorn.http.http_parser import HttpParser +from gunicorn.http.parser import HttpParser from gunicorn.http.request import HttpRequest, RequestError from gunicorn.http.response import HttpResponse \ No newline at end of file diff --git a/gunicorn/http/http_parser.py b/gunicorn/http/parser.py similarity index 99% rename from gunicorn/http/http_parser.py rename to gunicorn/http/parser.py index effb90ad..c8cbe778 100644 --- a/gunicorn/http/http_parser.py +++ b/gunicorn/http/parser.py @@ -130,7 +130,6 @@ class HttpParser(object): def body_eof(self): """do we have all the body ?""" - import sys if self.is_chunked: if self._chunk_eof: return True diff --git a/gunicorn/http/request.py b/gunicorn/http/request.py index 275ad6a6..13fad71d 100644 --- a/gunicorn/http/request.py +++ b/gunicorn/http/request.py @@ -15,7 +15,7 @@ import array import logging from gunicorn import __version__ -from gunicorn.http.http_parser import HttpParser +from gunicorn.http.parser import HttpParser from gunicorn.http.tee import TeeInput from gunicorn.util import CHUNK_SIZE, read_partial, \ normalize_name diff --git a/tests/t.py b/tests/t.py index 6dd51194..af7e0c94 100644 --- a/tests/t.py +++ b/tests/t.py @@ -12,7 +12,7 @@ import unittest dirname = os.path.dirname(__file__) -from gunicorn.http.http_parser import HttpParser +from gunicorn.http.parser import HttpParser from gunicorn.http.request import HttpRequest def data_source(fname):