From 886d43fd4cf5ba22eba4990322d708334c1ecf62 Mon Sep 17 00:00:00 2001 From: David Halter Date: Sat, 29 Dec 2012 23:47:20 +0100 Subject: [PATCH] fix problems with points in completion --- jedi/modules.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/jedi/modules.py b/jedi/modules.py index 79968946..75c89ff2 100644 --- a/jedi/modules.py +++ b/jedi/modules.py @@ -157,7 +157,8 @@ class ModuleWithCursor(Module): except tokenize.TokenError: debug.warning("Tokenize couldn't finish", sys.exc_info) - return string[::-1] + # string can still contain spaces at the end + return string[::-1].strip() def get_path_under_cursor(self): """