--- a/Utilities/ClassBrowsers/__init__.py Fri Mar 11 08:55:14 2011 +0100 +++ b/Utilities/ClassBrowsers/__init__.py Fri Mar 11 16:51:57 2011 +0100 @@ -29,12 +29,13 @@ SUPPORTED_TYPES = [PY_SOURCE, PTL_SOURCE, RB_SOURCE, IDL_SOURCE] __extensions = { - "IDL" : [".idl"], - "Python" : [".py", ".pyw", ".ptl"], # currently not used - "Ruby" : [".rb"], + "IDL": [".idl"], + "Python": [".py", ".pyw", ".ptl"], # currently not used + "Ruby": [".rb"], } -def readmodule(module, path=[], isPyFile = False): + +def readmodule(module, path=[], isPyFile=False): ''' Read a source file and return a dictionary of classes, functions, modules, etc. . @@ -59,7 +60,7 @@ ext in Preferences.getPython("Python3Extensions") or \ isPyFile: from . import pyclbr - dict = pyclbr.readmodule_ex(module, path, isPyFile = isPyFile) + dict = pyclbr.readmodule_ex(module, path, isPyFile=isPyFile) pyclbr._modules.clear() else: # try Python if it is without extension @@ -69,7 +70,8 @@ return dict -def find_module(name, path, isPyFile = False): + +def find_module(name, path, isPyFile=False): """ Module function to extend the Python module finding mechanism.