rename http_parser.py to parser.py we are already in http module

This commit is contained in:
Benoit Chesneau 2010-01-21 01:13:12 +01:00
parent 2393e21ddc
commit ec644bdf90
4 changed files with 3 additions and 4 deletions

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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):