Show More
@@ -518,7 +518,8 b' class closewrapbase(object):' | |||||
518 | return delattr(self._origfh, attr) |
|
518 | return delattr(self._origfh, attr) | |
519 |
|
519 | |||
520 | def __enter__(self): |
|
520 | def __enter__(self): | |
521 |
|
|
521 | self._origfh.__enter__() | |
|
522 | return self | |||
522 |
|
523 | |||
523 | def __exit__(self, exc_type, exc_value, exc_tb): |
|
524 | def __exit__(self, exc_type, exc_value, exc_tb): | |
524 | raise NotImplementedError('attempted instantiating ' + str(type(self))) |
|
525 | raise NotImplementedError('attempted instantiating ' + str(type(self))) |
General Comments 0
You need to be logged in to leave comments.
Login now