mercurial/windows.py
branchstable
changeset 40938 9ae4aed27930
parent 40937 e11e03f72baf
child 41289 593f6359681d
--- a/mercurial/windows.py	Sat Dec 15 01:26:18 2018 -0500
+++ b/mercurial/windows.py	Sat Dec 15 13:41:34 2018 -0500
@@ -70,7 +70,8 @@
         object.__setattr__(self, r'_lastop', 0)
 
     def __enter__(self):
-        return self._fp.__enter__()
+        self._fp.__enter__()
+        return self
 
     def __exit__(self, exc_type, exc_val, exc_tb):
         self._fp.__exit__(exc_type, exc_val, exc_tb)