move default arguments [] to (), because mutable may be dangerous (especially in a recursive environment
This commit is contained in:
1 parent
f423de1956
commit
52b32a01c1
4 files changed
+11
-11
No files matched your search
+1
-1
@@ -318,7 +318,7 @@ def strip_imports(scopes):
|
||||
|
||||
|
||||
@cache.cache_star_import
|
||||
def remove_star_imports(scope, ignored_modules=[]):
|
||||
def remove_star_imports(scope, ignored_modules=()):
|
||||
"""
|
||||
Check a module for star imports:
|
||||
>>> from module import *
|
||||
|
||||
Reference in new issue
Block a user