##// END OF EJS Templates
use a bytes regex to check for libedit...
MinRK -
Show More
@@ -45,7 +45,7 b" if sys.platform == 'win32' and have_readline:"
45 try:
45 try:
46 _outputfile=_rl.GetOutputFile()
46 _outputfile=_rl.GetOutputFile()
47 except AttributeError:
47 except AttributeError:
48 print "Failed GetOutputFile"
48 warnings.warn("Failed GetOutputFile")
49 have_readline = False
49 have_readline = False
50
50
51 # Test to see if libedit is being used instead of GNU readline.
51 # Test to see if libedit is being used instead of GNU readline.
@@ -86,7 +86,7 b" if sys.platform == 'darwin' and have_readline:"
86 else:
86 else:
87 break
87 break
88
88
89 if p is not None and p.returncode == 0 and re.search(r'/libedit[\.\d+]*\.dylib\s', out):
89 if p is not None and p.returncode == 0 and re.search(br'/libedit[\.\d+]*\.dylib\s', out):
90 # we are bound to libedit - new in Leopard
90 # we are bound to libedit - new in Leopard
91 _rl.parse_and_bind("bind ^I rl_complete")
91 _rl.parse_and_bind("bind ^I rl_complete")
92 warnings.warn("Leopard libedit detected - readline will not be well behaved "
92 warnings.warn("Leopard libedit detected - readline will not be well behaved "
General Comments 0
You need to be logged in to leave comments. Login now