mirror of
https://github.com/python/cpython.git
synced 2025-08-30 21:48:47 +00:00
utilize yield from
This commit is contained in:
parent
075bbb176f
commit
4993cc0a5b
11 changed files with 18 additions and 36 deletions
|
@ -367,8 +367,7 @@ class TokenList(list):
|
|||
yield (indent + ' !! invalid element in token '
|
||||
'list: {!r}'.format(token))
|
||||
else:
|
||||
for line in token._pp(indent+' '):
|
||||
yield line
|
||||
yield from token._pp(indent+' ')
|
||||
if self.defects:
|
||||
extra = ' Defects: {}'.format(self.defects)
|
||||
else:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue