Commits

Stefan Scherfke committed 232f5ab

Fixed completion for pdb.

Comments (0)

Files changed (2)

-from PdbTextMateSupport import preloop, precmd
-pdb.Pdb.preloop = preloop
-pdb.Pdb.precmd = precmd
-
-import sys
+import os, sys
 sys.path.insert(0, os.getenv("HOME") + "/.python/")
-import rlcompleter_ng
-pdb.Pdb.complete = rlcompleter_ng.Completer(locals()).complete
+import util as _util
+pdb.Pdb.complete = _util.Completer(locals()).complete
+del _util
     <http://codespeak.net/svn/user/antocuni/hack/rlcompleter_ng.py>`_
 
     """
-    def __init__(self):
-        rlcompleter.Completer.__init__(self)
+    def __init__(self, *args, **kwargs):
+        rlcompleter.Completer.__init__(self, *args, **kwargs)
 
     def complete(self, text, state):
         """