All pastes #155097 Raw Edit

Untitled

public text v1 · immutable
#155097 ·published 2006-08-30 20:46 UTC
rendered paste body
=== turbogears/command/base.py
==================================================================
--- turbogears/command/base.py  (revision 1787)
+++ turbogears/command/base.py  (local)
@@ -226,6 +226,11 @@
             class CustomShell(code.InteractiveConsole):
                 def raw_input(self, *args, **kw): 
                     try:
+                        import readline
+                    except ImportError:
+                        pass
+
+                    try:
                         return code.InteractiveConsole.raw_input(self,
                                                         *args, **kw)
                     except EOFError: