Utilities/ClassBrowsers/rbclbr.py

changeset 5651
982465f8389c
parent 5604
b047181a4a33
child 6048
82ad8ec9548c
--- a/Utilities/ClassBrowsers/rbclbr.py	Wed Mar 22 18:45:15 2017 +0100
+++ b/Utilities/ClassBrowsers/rbclbr.py	Wed Mar 22 18:50:20 2017 +0100
@@ -251,7 +251,7 @@
         self.setPrivate()
 
 
-def readmodule_ex(module, path=[]):
+def readmodule_ex(module, path=None):
     """
     Read a Ruby file and return a dictionary of classes, functions and modules.
 
@@ -270,7 +270,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