diff options
| author | Serhiy Storchaka <storchaka@gmail.com> | 2018-11-25 09:51:14 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-11-25 09:51:14 +0200 |
| commit | 4bb186d7e253ad4def875305e06690181e923dfd (patch) | |
| tree | 3d2cd47e82efd0ddc8be203d4d00d54f03f51c92 /Lib/zipfile.py | |
| parent | 7f4ba4afd47f21f61de9035544809fc67d136f35 (diff) | |
| download | cpython-git-4bb186d7e253ad4def875305e06690181e923dfd.tar.gz | |
bpo-32035: Fix words about strings and bytes in zipfile documentation. (GH-10592)
Diffstat (limited to 'Lib/zipfile.py')
| -rw-r--r-- | Lib/zipfile.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/zipfile.py b/Lib/zipfile.py index 4a6b40ee44..dc16f6d464 100644 --- a/Lib/zipfile.py +++ b/Lib/zipfile.py @@ -402,7 +402,7 @@ class ZipInfo (object): return ''.join(result) def FileHeader(self, zip64=None): - """Return the per-file header as a string.""" + """Return the per-file header as a bytes object.""" dt = self.date_time dosdate = (dt[0] - 1980) << 9 | dt[1] << 5 | dt[2] dostime = dt[3] << 11 | dt[4] << 5 | (dt[5] // 2) @@ -1429,7 +1429,7 @@ class ZipFile: self._didModify = True def read(self, name, pwd=None): - """Return file bytes (as a string) for name.""" + """Return file bytes for name.""" with self.open(name, "r", pwd) as fp: return fp.read() |
