Permalink
Browse files

fix pypy

  • Loading branch information...
benoitc committed Jun 20, 2011
1 parent 15c7a6e commit 22cb244d1711afcdffb2a06f016b78819aa960a8
Showing with 4 additions and 1 deletion.
  1. +4 −1 http_parser/reader.py
View
@@ -63,7 +63,10 @@ def readinto(self, b):
return 0
self._checkReadable()
- self._checkClosed()
+ try:
+ self._checkClosed()
+ except AttributeError:
+ pass
while True:
buf = bytearray(DEFAULT_BUFFER_SIZE)

0 comments on commit 22cb244

Please sign in to comment.