Show More
@@ -64,6 +64,12 b' class mixedfilemodewrapper(object):' | |||||
64 | object.__setattr__(self, r'_fp', fp) |
|
64 | object.__setattr__(self, r'_fp', fp) | |
65 | object.__setattr__(self, r'_lastop', 0) |
|
65 | object.__setattr__(self, r'_lastop', 0) | |
66 |
|
66 | |||
|
67 | def __enter__(self): | |||
|
68 | return self._fp.__enter__() | |||
|
69 | ||||
|
70 | def __exit__(self, exc_type, exc_val, exc_tb): | |||
|
71 | self._fp.__exit__(exc_type, exc_val, exc_tb) | |||
|
72 | ||||
67 | def __getattr__(self, name): |
|
73 | def __getattr__(self, name): | |
68 | return getattr(self._fp, name) |
|
74 | return getattr(self._fp, name) | |
69 |
|
75 |
General Comments 0
You need to be logged in to leave comments.
Login now