From 9e8b7d1d1b7705f510176a676038dcfed688a53b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ole=20Andr=C3=A9=20Vadla=20Ravn=C3=A5s?= Date: Wed, 15 Jul 2015 22:45:04 +0200 Subject: [PATCH] Fix REPL completion crash on Py3k --- src/frida/repl.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/frida/repl.py b/src/frida/repl.py index 7567ded..1cd6fa1 100644 --- a/src/frida/repl.py +++ b/src/frida/repl.py @@ -413,7 +413,7 @@ def main(): def get_completions(self, document, complete_event): prefix = document.text_before_cursor - magic = len(prefix) > 0 and prefix[0] == '%' and not any(map(unicode.isspace, prefix)) + magic = len(prefix) > 0 and prefix[0] == '%' and not any(map(lambda c: c.isspace(), prefix)) tokens = list(self._lexer.get_tokens(prefix))[:-1]