Skip to content

Commit

Permalink
Fix raise Python 3 syntax error (fix #3)
Browse files Browse the repository at this point in the history
  • Loading branch information
fgallaire committed Sep 29, 2016
1 parent 23d99e7 commit 8c5d2fe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions wsgiserver.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
return
"""

__version__ = '1.2'
__version__ = '1.3'

__all__ = ['HTTPRequest', 'HTTPConnection', 'HTTPServer',
'SizeCheckWrapper', 'KnownLengthRFile', 'ChunkedRFile',
Expand Down Expand Up @@ -2365,7 +2365,7 @@ def start_response(self, status, headers, exc_info=None):
if self.req.sent_headers:
try:
if PY2:
raise exc_info[0], exc_info[1], exc_info[2]
exec('raise exc_info[0], exc_info[1], exc_info[2]')
else:
raise exc_info[0](exc_info[1]).with_traceback(exc_info[2])
finally:
Expand Down

0 comments on commit 8c5d2fe

Please sign in to comment.