Skip to content

Commit 48c3d7f

Browse files
committed
pythongh-133733, pythongh-134743 Add proposed changes to ast.py.
1 parent 9fbd66a commit 48c3d7f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Lib/ast.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,9 +145,11 @@ def _format(node, level=0):
145145
keywords = True
146146
continue
147147
if value is None and getattr(cls, name, ...) is None:
148+
if show_empty:
149+
args.append('%s=%s' % (name, value))
148150
keywords = True
149151
continue
150-
if (
152+
elif (
151153
not show_empty
152154
and (value is None or value == [])
153155
# Special cases:

0 commit comments

Comments
 (0)