move default arguments [] to (), because mutable may be dangerous (especially in a recursive environment

This commit is contained in:
David Halter committed 2013-02-11 01:21:51 +01:00
1 parent f423de1956
commit 52b32a01c1
4 files changed
+11 -11

No files matched your search

+1 -1
View File
@@ -300,7 +300,7 @@ class Script(object):
definitions = [user_stmt]
return definitions, search_name
def related_names(self, additional_module_paths=[]):
def related_names(self, additional_module_paths=()):
"""
Return :class:`api_classes.RelatedName` objects, which contain all
names that point to the definition of the name under the cursor. This