diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2022-09-03 05:58:25 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-03 05:58:25 (GMT) |
commit | 16c6759b3748f9b787b2fa4d5e652a8e08a17dee (patch) | |
tree | 0b1afb2e5e21f6b185d80bf626a094bd05673482 /Lib/zipfile.py | |
parent | 57b61103615b97f202be26b1e005c88f1f449b71 (diff) | |
download | cpython-16c6759b3748f9b787b2fa4d5e652a8e08a17dee.zip cpython-16c6759b3748f9b787b2fa4d5e652a8e08a17dee.tar.gz cpython-16c6759b3748f9b787b2fa4d5e652a8e08a17dee.tar.bz2 |
gh-45108: Improve docstring and testing of ZipFile.testfile() (GH-96233)
Diffstat (limited to 'Lib/zipfile.py')
-rw-r--r-- | Lib/zipfile.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Lib/zipfile.py b/Lib/zipfile.py index 903d09d..b646537 100644 --- a/Lib/zipfile.py +++ b/Lib/zipfile.py @@ -1468,7 +1468,10 @@ class ZipFile: file=file) def testzip(self): - """Read all the files and check the CRC.""" + """Read all the files and check the CRC. + + Return None if all files could be read successfully, or the name + of the offending file otherwise.""" chunk_size = 2 ** 20 for zinfo in self.filelist: try: |