1. Stefan Scherfke
  2. dotfiles

Commits

Stefan Scherfke  committed 232f5ab

Fixed completion for pdb.

  • Participants
  • Parent commits 3ddb978
  • Branches default

Comments (0)

Files changed (2)

File _pdbrc

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

File _python/util.py

View file
     <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):
         """