Fix compatibility for Python 2

This commit is contained in:
Felix Yan 2019-12-25 19:44:39 +08:00
parent e49282f72c
commit d622f12f69
No known key found for this signature in database
GPG Key ID: 786C63F330D7CB92
1 changed files with 2 additions and 1 deletions

View File

@ -681,7 +681,8 @@ def _iter_rewritable_modules(package_files):
if new_fn:
new_package_files.append(new_fn)
if new_package_files:
yield from _iter_rewritable_modules(new_package_files)
for _module in _iter_rewritable_modules(new_package_files):
yield _module
class Config(object):