Skip to content

Commit a6d22b7

Browse files
author
Adi Roiban
committed
Update after review.
1 parent 609d44f commit a6d22b7

File tree

2 files changed

+9
-11
lines changed

2 files changed

+9
-11
lines changed

Lib/zipfile/__init__.py

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -869,6 +869,10 @@ def _get_decompressor(compress_type):
869869

870870

871871
class _SharedFile:
872+
"""
873+
Protect an already opened member of the archive from being read or written
874+
at the same time.
875+
"""
872876
def __init__(self, file, pos, close, lock, writing):
873877
self._file = file
874878
self._pos = pos
@@ -1400,15 +1404,9 @@ class ZipFile:
14001404
help extend ZipFile.
14011405
For example to implement other encryption or compression
14021406
methods.
1403-
ZipFile, for example to implement other encryption or compression
1404-
methods.
1405-
This is private as there is no commitemnt to maintain backward
1406-
compatibitly.
1407-
_ZipExtFile: A class that can replace ZipExtFile. This is designed to help
1408-
extend ZipFile, for example to implement other encryption
1409-
or compression methods.
1410-
This is private as there is no commitemnt to maintain backward
1411-
compatibitly.
1407+
ZipFile, for example to implement other encryption or compression
1408+
methods.
1409+
14121410
"""
14131411

14141412
fp = None # Set here since __del__ checks it
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
zipfile.ZipFile.__init__ was updated to make it easier to subclass and
2-
extend it to support new encryption methods.
1+
:class:`zipfile.ZipFile` was given the `zipinfo_class` and `zipextfile_class` to make it easier to subclass and
2+
extend it.

0 commit comments

Comments
 (0)