This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author ronaldoussoren
Recipients eric.araujo, l0nwlf, ned.deily, ronaldoussoren, slcott
Date 2010-06-22.14:11:44
SpamBayes Score 0.0007359185
Marked as misclassified No
Message-id <1277215906.81.0.811807858499.issue9033@psf.upfronthosting.co.za>
In-reply-to
Content
This (untested) patch should fix the issue for the cmd module:


+++ Lib/cmd.py	(working copy)
@@ -112,7 +112,18 @@
                 import readline
                 self.old_completer = readline.get_completer()
                 readline.set_completer(self.complete)
-                readline.parse_and_bind(self.completekey+": complete")
+
+                if 'libedit' in readline.__doc__:
+                    # readline linked to BSD libedit
+                    if self.completekey == 'tab':
+                        key = '^I'
+                    else:
+                        key = self.completekey
+                    readline.parse_and_bind("bind %s rl_complete"%(key,))
+
+                else:
+                    # readline linked to the real readline
+                    readline.parse_and_bind(self.completekey+": complete")
             except ImportError:
                 pass
         try:
History
Date User Action Args
2010-06-22 14:11:46ronaldoussorensetrecipients: + ronaldoussoren, ned.deily, eric.araujo, l0nwlf, slcott
2010-06-22 14:11:46ronaldoussorensetmessageid: <1277215906.81.0.811807858499.issue9033@psf.upfronthosting.co.za>
2010-06-22 14:11:45ronaldoussorenlinkissue9033 messages
2010-06-22 14:11:44ronaldoussorencreate