Skip to content

Commit 3fc4d5e

Browse files
committed
Remove new __all__ entries
1 parent ce00e6d commit 3fc4d5e

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

Lib/tarfile.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,10 +70,7 @@
7070
__all__ = ["TarFile", "TarInfo", "is_tarfile", "TarError", "ReadError",
7171
"CompressionError", "StreamError", "ExtractError", "HeaderError",
7272
"ENCODING", "USTAR_FORMAT", "GNU_FORMAT", "PAX_FORMAT",
73-
"DEFAULT_FORMAT", "open","fully_trusted_filter", "data_filter",
74-
"tar_filter", "FilterError", "AbsoluteLinkError",
75-
"OutsideDestinationError", "SpecialFileError", "AbsolutePathError",
76-
"LinkOutsideDestinationError"]
73+
"DEFAULT_FORMAT", "open"]
7774

7875

7976
#---------------------------------------------------------

Lib/test/test_tarfile.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2444,7 +2444,12 @@ def test__all__(self):
24442444
'PAX_NUMBER_FIELDS', 'stn', 'nts', 'nti', 'itn', 'calc_chksums',
24452445
'copyfileobj', 'filemode', 'EmptyHeaderError',
24462446
'TruncatedHeaderError', 'EOFHeaderError', 'InvalidHeaderError',
2447-
'SubsequentHeaderError', 'ExFileObject', 'main'}
2447+
'SubsequentHeaderError', 'ExFileObject', 'main',
2448+
"fully_trusted_filter", "data_filter",
2449+
"tar_filter", "FilterError", "AbsoluteLinkError",
2450+
"OutsideDestinationError", "SpecialFileError", "AbsolutePathError",
2451+
"LinkOutsideDestinationError",
2452+
}
24482453
support.check__all__(self, tarfile, not_exported=not_exported)
24492454

24502455
def test_useful_error_message_when_modules_missing(self):

0 commit comments

Comments
 (0)