Fix REPL completion crash on Py3k

This commit is contained in:
Ole André Vadla Ravnås
2015-07-15 22:45:04 +02:00
parent cb34be7f0a
commit 9e8b7d1d1b
+1 -1
View File
@@ -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]