mercurial/cmdutil.py
changeset 30142 3dcaf1c4e90d
parent 30018 2963fba2d18a
child 30151 381293e1135e
equal deleted inserted replaced
30141:c01acee367ec 30142:3dcaf1c4e90d
   496     def __iter__(self):
   496     def __iter__(self):
   497         return iter(self._fp)
   497         return iter(self._fp)
   498 
   498 
   499     def __getattr__(self, attr):
   499     def __getattr__(self, attr):
   500         return getattr(self._fp, attr)
   500         return getattr(self._fp, attr)
       
   501 
       
   502     def __enter__(self):
       
   503         return self
       
   504 
       
   505     def __exit__(self, exc_type, exc_value, exc_tb):
       
   506         pass
   501 
   507 
   502 def makefileobj(repo, pat, node=None, desc=None, total=None,
   508 def makefileobj(repo, pat, node=None, desc=None, total=None,
   503                 seqno=None, revwidth=None, mode='wb', modemap=None,
   509                 seqno=None, revwidth=None, mode='wb', modemap=None,
   504                 pathname=None):
   510                 pathname=None):
   505 
   511