format StmtTryStar (#5418)
This commit is contained in:
@@ -70,3 +70,22 @@ try:
|
||||
except:
|
||||
a = 10 # trailing comment1
|
||||
b = 11 # trailing comment2
|
||||
|
||||
|
||||
# try/except*, mostly the same as try
|
||||
try: # try
|
||||
...
|
||||
# end of body
|
||||
# before except
|
||||
except* (Exception, ValueError) as exc: # except line
|
||||
...
|
||||
# before except 2
|
||||
except* KeyError as key: # except line 2
|
||||
...
|
||||
# in body 2
|
||||
# before else
|
||||
else:
|
||||
...
|
||||
# before finally
|
||||
finally:
|
||||
...
|
||||
|
||||
Reference in New Issue
Block a user