mercurial/cmdutil.py
changeset 30142 3dcaf1c4e90d
parent 30016 2963fba2d18a
child 30151 381293e1135e
--- a/mercurial/cmdutil.py	Sat Oct 08 00:59:40 2016 +0200
+++ b/mercurial/cmdutil.py	Sat Oct 08 00:59:41 2016 +0200
@@ -499,6 +499,12 @@
     def __getattr__(self, attr):
         return getattr(self._fp, attr)
 
+    def __enter__(self):
+        return self
+
+    def __exit__(self, exc_type, exc_value, exc_tb):
+        pass
+
 def makefileobj(repo, pat, node=None, desc=None, total=None,
                 seqno=None, revwidth=None, mode='wb', modemap=None,
                 pathname=None):