##// END OF EJS Templates
py3: ensure the proxied Windows fd doesn't escape by entering context manager...
Matt Harbison -
r40973:e11e03f7 stable
parent child Browse files
Show More
@@ -132,7 +132,10 b' class fdproxy(object):'
132 self._fp = fp
132 self._fp = fp
133
133
134 def __enter__(self):
134 def __enter__(self):
135 return self._fp.__enter__()
135 self._fp.__enter__()
136 # Return this wrapper for the context manager so that the name is
137 # still available.
138 return self
136
139
137 def __exit__(self, exc_type, exc_value, traceback):
140 def __exit__(self, exc_type, exc_value, traceback):
138 self._fp.__exit__(exc_type, exc_value, traceback)
141 self._fp.__exit__(exc_type, exc_value, traceback)
General Comments 0
You need to be logged in to leave comments. Login now