##// END OF EJS Templates
windows: ensure mixedfilemodewrapper fd doesn't escape by entering context mgr...
Matt Harbison -
r40974:9ae4aed2 stable
parent child Browse files
Show More
@@ -70,7 +70,8 b' class mixedfilemodewrapper(object):'
70 object.__setattr__(self, r'_lastop', 0)
70 object.__setattr__(self, r'_lastop', 0)
71
71
72 def __enter__(self):
72 def __enter__(self):
73 return self._fp.__enter__()
73 self._fp.__enter__()
74 return self
74
75
75 def __exit__(self, exc_type, exc_val, exc_tb):
76 def __exit__(self, exc_type, exc_val, exc_tb):
76 self._fp.__exit__(exc_type, exc_val, exc_tb)
77 self._fp.__exit__(exc_type, exc_val, exc_tb)
General Comments 0
You need to be logged in to leave comments. Login now