changeset 36447 | 588048a6a8d3 |
parent 36437 | 745b0df08514 |
child 36707 | bfe23afea361 |
--- a/mercurial/archival.py Mon Feb 26 16:23:12 2018 +0530 +++ b/mercurial/archival.py Mon Feb 26 17:25:46 2018 +0530 @@ -154,7 +154,7 @@ def taropen(mode, name='', fileobj=None): if kind == 'gz': - mode = mode[0] + mode = mode[0:1] if not fileobj: fileobj = open(name, mode + 'b') gzfileobj = self.GzipFileWithTime(name, mode + 'b',