[3.12] gh-106510: Fix DEBUG output for atomic group (GH-106511) (GH-106548)

(cherry picked from commit 74ec02e949)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
This commit is contained in:
Miss Islington (bot) 2023-07-08 05:15:54 -07:00 committed by GitHub
parent 48f58e0243
commit 60ade0cb29
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 2 deletions

View file

@ -114,7 +114,6 @@ class SubPattern:
self.width = None
def dump(self, level=0):
nl = True
seqtypes = (tuple, list)
for op, av in self.data:
print(level*" " + str(op), end='')
@ -136,6 +135,9 @@ class SubPattern:
if item_no:
print(level*" " + "ELSE")
item_no.dump(level+1)
elif isinstance(av, SubPattern):
print()
av.dump(level+1)
elif isinstance(av, seqtypes):
nl = False
for a in av: