From df7d51aedac399babbc8a0faa4c731ea45887e5b Mon Sep 17 00:00:00 2001 From: Stanislav Golovanov Date: Sat, 18 May 2013 23:46:02 +0400 Subject: [PATCH] Use new Jedi API for keyword checking in goto funcs Fixes #320 --- python/completers/python/jedi_completer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/completers/python/jedi_completer.py b/python/completers/python/jedi_completer.py index 865b1dd0..222ad974 100644 --- a/python/completers/python/jedi_completer.py +++ b/python/completers/python/jedi_completer.py @@ -140,7 +140,7 @@ class JediCompleter( ThreadedCompleter ): if len( definition_list ) == 1: definition = definition_list[ 0 ] if definition.in_builtin_module(): - if isinstance( definition.name, jedi.keywords.Keyword ): + if definition.is_keyword: vimsupport.PostVimMessage( "Cannot get the definition of Python keywords." ) else: