Skip to content

Commit

Permalink
keep a consistent style
Browse files Browse the repository at this point in the history
  • Loading branch information
benoitc committed Jan 5, 2016
1 parent 68cd6c3 commit 6dcd7a6
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions gunicorn/http/wsgi.py
Original file line number Diff line number Diff line change
Expand Up @@ -353,11 +353,10 @@ def sendfile(self, respiter):
if self.cfg.is_ssl or not self.can_sendfile():
return False

if util.has_fileno(respiter.filelike):
fileno = respiter.filelike.fileno()
else:
if not util.has_fileno(respiter.filelike):
return False

fileno = respiter.filelike.fileno()
try:
offset = os.lseek(fileno, 0, os.SEEK_CUR)
if self.response_length is None:
Expand Down

0 comments on commit 6dcd7a6

Please sign in to comment.