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