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:
|
except KeyboardInterrupt:
|
||||||
self.stop(False)
|
self.stop(False)
|
||||||
sys.exit(-1)
|
sys.exit(-1)
|
||||||
except Exception, e:
|
except Exception:
|
||||||
self.log.exception("Unhandled exception in main loop.")
|
self.log.exception("Unhandled exception in main loop.")
|
||||||
self.stop(False)
|
self.stop(False)
|
||||||
sys.exit(-1)
|
sys.exit(-1)
|
||||||
|
|||||||
@ -138,7 +138,6 @@ class HttpParser(object):
|
|||||||
return False
|
return False
|
||||||
|
|
||||||
def read_chunk(self, data):
|
def read_chunk(self, data):
|
||||||
dlen = len(data)
|
|
||||||
if not self.start_offset:
|
if not self.start_offset:
|
||||||
i = data.find("\r\n")
|
i = data.find("\r\n")
|
||||||
if i != -1:
|
if i != -1:
|
||||||
|
|||||||
@ -58,7 +58,6 @@ class HttpRequest(object):
|
|||||||
def read(self):
|
def read(self):
|
||||||
environ = {}
|
environ = {}
|
||||||
headers = []
|
headers = []
|
||||||
remain = CHUNK_SIZE
|
|
||||||
buf = ""
|
buf = ""
|
||||||
buf = read_partial(self.socket, CHUNK_SIZE)
|
buf = read_partial(self.socket, CHUNK_SIZE)
|
||||||
i = self.parser.filter_headers(headers, buf)
|
i = self.parser.filter_headers(headers, buf)
|
||||||
|
|||||||
@ -93,7 +93,8 @@ class TeeInput(object):
|
|||||||
return self.temp.readline(size)
|
return self.temp.readline(size)
|
||||||
return line
|
return line
|
||||||
|
|
||||||
def readlines(self, sizehints=0):
|
def readlines(self, sizehint=0):
|
||||||
|
total = 0
|
||||||
lines = []
|
lines = []
|
||||||
line = self.readline()
|
line = self.readline()
|
||||||
while line:
|
while line:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user