##// END OF EJS Templates
avoid missing readline warning in zmqshell...
MinRK -
Show More
@@ -472,7 +472,7 b' class InteractiveShell(SingletonConfigurable, Magic):'
472
472
473 If called with no arguments, it acts as a toggle."""
473 If called with no arguments, it acts as a toggle."""
474
474
475 if not self.has_readline:
475 if value != 0 and not self.has_readline:
476 if os.name == 'posix':
476 if os.name == 'posix':
477 warn("The auto-indent feature requires the readline library")
477 warn("The auto-indent feature requires the readline library")
478 self.autoindent = 0
478 self.autoindent = 0
@@ -86,6 +86,9 b' class ZMQInteractiveShell(InteractiveShell):'
86 # to the terminal frontend.
86 # to the terminal frontend.
87 colors_force = CBool(True)
87 colors_force = CBool(True)
88 readline_use = CBool(False)
88 readline_use = CBool(False)
89 # autoindent has no meaning in a zmqshell, and attempting to enable it
90 # will print a warning in the absence of readline.
91 autoindent = CBool(False)
89
92
90 exiter = Instance(ZMQExitAutocall)
93 exiter = Instance(ZMQExitAutocall)
91 def _exiter_default(self):
94 def _exiter_default(self):
General Comments 0
You need to be logged in to leave comments. Login now