DebugClients/Python3/FlexCompleter.py

changeset 945
8cd4d08fa9f6
parent 15
f6ccc31d6e72
child 2953
703452a2876f
--- a/DebugClients/Python3/FlexCompleter.py	Fri Mar 11 08:55:14 2011 +0100
+++ b/DebugClients/Python3/FlexCompleter.py	Fri Mar 11 16:51:57 2011 +0100
@@ -5,8 +5,8 @@
 
 <h4>NOTE for eric5 variant</h4>
 
-    This version is a re-implementation of rlcompleter 
-    as found in the Python3 library. It is modified to work with the eric5 
+    This version is a re-implementation of rlcompleter
+    as found in the Python3 library. It is modified to work with the eric5
     debug clients.
 
 <h4>Original rlcompleter documentation</h4>
@@ -53,11 +53,12 @@
 
 __all__ = ["Completer"]
 
+
 class Completer(object):
     """
     Class implementing the command line completer object.
     """
-    def __init__(self, namespace = None):
+    def __init__(self, namespace=None):
         """
         Create a new completer for the command line.
 
@@ -176,7 +177,7 @@
         if "__builtins__" in words:
             words.remove("__builtins__")
 
-        if hasattr(object,'__class__'):
+        if hasattr(object, '__class__'):
             words.append('__class__')
             words = words + get_class_members(object.__class__)
         matches = []
@@ -194,6 +195,7 @@
                 pass
         return matches
 
+
 def get_class_members(klass):
     """
     Module function to retrieve the class members.
@@ -205,4 +207,4 @@
     if hasattr(klass, '__bases__'):
         for base in klass.__bases__:
             ret = ret + get_class_members(base)
-    return ret
\ No newline at end of file
+    return ret

eric ide

mercurial