Show More
@@ -1264,7 +1264,9 class ui(object): | |||||
1264 | return i |
|
1264 | return i | |
1265 |
|
1265 | |||
1266 | def _readline(self): |
|
1266 | def _readline(self): | |
1267 | if self._isatty(self.fin): |
|
1267 | usereadline = (self._isatty(self.fin) and self._isatty(self.fout) | |
|
1268 | and util.isstdin(self.fin) and util.isstdout(self.fout)) | |||
|
1269 | if usereadline: | |||
1268 | try: |
|
1270 | try: | |
1269 | # magically add command line editing support, where |
|
1271 | # magically add command line editing support, where | |
1270 | # available |
|
1272 | # available | |
@@ -1273,7 +1275,7 class ui(object): | |||||
1273 | readline.read_history_file |
|
1275 | readline.read_history_file | |
1274 | # windows sometimes raises something other than ImportError |
|
1276 | # windows sometimes raises something other than ImportError | |
1275 | except Exception: |
|
1277 | except Exception: | |
1276 |
|
|
1278 | usereadline = False | |
1277 |
|
1279 | |||
1278 | # prompt ' ' must exist; otherwise readline may delete entire line |
|
1280 | # prompt ' ' must exist; otherwise readline may delete entire line | |
1279 | # - http://bugs.python.org/issue12833 |
|
1281 | # - http://bugs.python.org/issue12833 |
General Comments 0
You need to be logged in to leave comments.
Login now