mirror of
https://github.com/frappe/gunicorn.git
synced 2026-01-14 11:09:11 +08:00
fix other issues spotted by pyflakes.
This commit is contained in:
parent
036735b456
commit
99bb5b0de4
@ -142,7 +142,7 @@ class Arbiter(object):
|
||||
except KeyboardInterrupt:
|
||||
self.stop(False)
|
||||
sys.exit(-1)
|
||||
except Exception, e:
|
||||
except Exception:
|
||||
self.log.exception("Unhandled exception in main loop.")
|
||||
self.stop(False)
|
||||
sys.exit(-1)
|
||||
|
||||
@ -138,7 +138,6 @@ class HttpParser(object):
|
||||
return False
|
||||
|
||||
def read_chunk(self, data):
|
||||
dlen = len(data)
|
||||
if not self.start_offset:
|
||||
i = data.find("\r\n")
|
||||
if i != -1:
|
||||
|
||||
@ -58,7 +58,6 @@ class HttpRequest(object):
|
||||
def read(self):
|
||||
environ = {}
|
||||
headers = []
|
||||
remain = CHUNK_SIZE
|
||||
buf = ""
|
||||
buf = read_partial(self.socket, CHUNK_SIZE)
|
||||
i = self.parser.filter_headers(headers, buf)
|
||||
|
||||
@ -93,7 +93,8 @@ class TeeInput(object):
|
||||
return self.temp.readline(size)
|
||||
return line
|
||||
|
||||
def readlines(self, sizehints=0):
|
||||
def readlines(self, sizehint=0):
|
||||
total = 0
|
||||
lines = []
|
||||
line = self.readline()
|
||||
while line:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user