Utilities/ClassBrowsers/jsclbr.py

changeset 5651
982465f8389c
parent 5604
b047181a4a33
child 5790
6411ee48fe91
--- a/Utilities/ClassBrowsers/jsclbr.py	Wed Mar 22 18:45:15 2017 +0100
+++ b/Utilities/ClassBrowsers/jsclbr.py	Wed Mar 22 18:50:20 2017 +0100
@@ -274,7 +274,7 @@
                                   self.__file, var.line))
 
 
-def readmodule_ex(module, path=[]):
+def readmodule_ex(module, path=None):
     """
     Read a JavaScript file and return a dictionary of functions and variables.
 
@@ -292,7 +292,7 @@
 
     # search the path for the file
     f = None
-    fullpath = list(path)
+    fullpath = [] if path is None else path[:]
     f, file, (suff, mode, type) = ClassBrowsers.find_module(module, fullpath)
     if f:
         f.close()

eric ide

mercurial