Utilities/ClassBrowsers/__init__.py

changeset 945
8cd4d08fa9f6
parent 791
9ec2ac20e54e
child 1509
c0b5e693b0eb
--- 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.
     

eric ide

mercurial