Skip to content

Commit

Permalink
Simplify __all__ extension
Browse files Browse the repository at this point in the history
Co-authored-by: Adam Turner <[email protected]>
  • Loading branch information
picnixz and AA-Turner authored Jan 12, 2025
1 parent 6ce7785 commit 2b7bfd9
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions Lib/pickle.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,10 +187,7 @@ def __init__(self, value):
NEXT_BUFFER = b'\x97' # push next out-of-band buffer
READONLY_BUFFER = b'\x98' # make top of stack readonly

__all__.extend([
x for x in dir()
if x.isupper() and x.isidentifier() and not x.startswith('_')
])
__all__.extend(x for x in dir() if x.isupper() and not x.startswith('_'))

class _Framer:

Expand Down

0 comments on commit 2b7bfd9

Please sign in to comment.