Show More
@@ -660,11 +660,6 b' class unpackermixin(object):' | |||||
660 | raise |
|
660 | raise | |
661 | return None |
|
661 | return None | |
662 |
|
662 | |||
663 | def close(self): |
|
|||
664 | """close underlying file""" |
|
|||
665 | if util.safehasattr(self._fp, 'close'): |
|
|||
666 | return self._fp.close() |
|
|||
667 |
|
||||
668 | def getunbundler(ui, fp, magicstring=None): |
|
663 | def getunbundler(ui, fp, magicstring=None): | |
669 | """return a valid unbundler object for a given magicstring""" |
|
664 | """return a valid unbundler object for a given magicstring""" | |
670 | if magicstring is None: |
|
665 | if magicstring is None: | |
@@ -817,6 +812,11 b' class unbundle20(unpackermixin):' | |||||
817 | self.params # load params |
|
812 | self.params # load params | |
818 | return self._compressed |
|
813 | return self._compressed | |
819 |
|
814 | |||
|
815 | def close(self): | |||
|
816 | """close underlying file""" | |||
|
817 | if util.safehasattr(self._fp, 'close'): | |||
|
818 | return self._fp.close() | |||
|
819 | ||||
820 | formatmap = {'20': unbundle20} |
|
820 | formatmap = {'20': unbundle20} | |
821 |
|
821 | |||
822 | b2streamparamsmap = {} |
|
822 | b2streamparamsmap = {} |
General Comments 0
You need to be logged in to leave comments.
Login now