Skip to content

Commit

Permalink
Remove new __all__ entries
Browse files Browse the repository at this point in the history
  • Loading branch information
encukou committed May 11, 2023
1 parent 2948293 commit 1949dc2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
5 changes: 1 addition & 4 deletions Lib/tarfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,7 @@
__all__ = ["TarFile", "TarInfo", "is_tarfile", "TarError", "ReadError",
"CompressionError", "StreamError", "ExtractError", "HeaderError",
"ENCODING", "USTAR_FORMAT", "GNU_FORMAT", "PAX_FORMAT",
"DEFAULT_FORMAT", "open","fully_trusted_filter", "data_filter",
"tar_filter", "FilterError", "AbsoluteLinkError",
"OutsideDestinationError", "SpecialFileError", "AbsolutePathError",
"LinkOutsideDestinationError"]
"DEFAULT_FORMAT", "open"]


#---------------------------------------------------------
Expand Down
7 changes: 6 additions & 1 deletion Lib/test/test_tarfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -2387,7 +2387,12 @@ def test__all__(self):
'PAX_NUMBER_FIELDS', 'stn', 'nts', 'nti', 'itn', 'calc_chksums',
'copyfileobj', 'filemode', 'EmptyHeaderError',
'TruncatedHeaderError', 'EOFHeaderError', 'InvalidHeaderError',
'SubsequentHeaderError', 'ExFileObject', 'main'}
'SubsequentHeaderError', 'ExFileObject', 'main',
"fully_trusted_filter", "data_filter",
"tar_filter", "FilterError", "AbsoluteLinkError",
"OutsideDestinationError", "SpecialFileError", "AbsolutePathError",
"LinkOutsideDestinationError",
}
support.check__all__(self, tarfile, blacklist=blacklist)


Expand Down

0 comments on commit 1949dc2

Please sign in to comment.