Utilities/ClassBrowsers/__init__.py

changeset 5651
982465f8389c
parent 5604
b047181a4a33
child 5977
8a0ec75b0f73
--- a/Utilities/ClassBrowsers/__init__.py	Wed Mar 22 18:45:15 2017 +0100
+++ b/Utilities/ClassBrowsers/__init__.py	Wed Mar 22 18:50:20 2017 +0100
@@ -40,7 +40,7 @@
 }
 
 
-def readmodule(module, path=[], isPyFile=False):
+def readmodule(module, path=None, isPyFile=False):
     """
     Read a source file and return a dictionary of classes, functions, modules,
     etc. .
@@ -54,6 +54,7 @@
     @return the resulting dictionary
     """
     ext = os.path.splitext(module)[1].lower()
+    path = [] if path is None else path[:]
     
     if ext in __extensions["IDL"]:
         from . import idlclbr

eric ide

mercurial