Skip to content

Commit 2b7bfd9

Browse files
picnixzAA-Turner
andauthored
Simplify __all__ extension
Co-authored-by: Adam Turner <[email protected]>
1 parent 6ce7785 commit 2b7bfd9

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

Lib/pickle.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -187,10 +187,7 @@ def __init__(self, value):
187187
NEXT_BUFFER = b'\x97' # push next out-of-band buffer
188188
READONLY_BUFFER = b'\x98' # make top of stack readonly
189189

190-
__all__.extend([
191-
x for x in dir()
192-
if x.isupper() and x.isidentifier() and not x.startswith('_')
193-
])
190+
__all__.extend(x for x in dir() if x.isupper() and not x.startswith('_'))
194191

195192
class _Framer:
196193

0 commit comments

Comments
 (0)