Skip to content

Commit 688286c

Browse files
encukoumcepl
authored andcommitted
Remove new __all__ entries
1 parent b2f7a44 commit 688286c

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
@@ -2414,7 +2414,12 @@ def test__all__(self):
24142414
'PAX_NUMBER_FIELDS', 'stn', 'nts', 'nti', 'itn', 'calc_chksums',
24152415
'copyfileobj', 'filemode', 'EmptyHeaderError',
24162416
'TruncatedHeaderError', 'EOFHeaderError', 'InvalidHeaderError',
2417-
'SubsequentHeaderError', 'ExFileObject', 'main'}
2417+
'SubsequentHeaderError', 'ExFileObject', 'main',
2418+
"fully_trusted_filter", "data_filter",
2419+
"tar_filter", "FilterError", "AbsoluteLinkError",
2420+
"OutsideDestinationError", "SpecialFileError", "AbsolutePathError",
2421+
"LinkOutsideDestinationError",
2422+
}
24182423
support.check__all__(self, tarfile, not_exported=not_exported)
24192424

24202425
def test_useful_error_message_when_modules_missing(self):

0 commit comments

Comments
 (0)