--- 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