remove not needed type casting

This commit is contained in:
Stanislav Golovanov 2013-05-04 22:47:37 +04:00
parent c2024edbaa
commit f246f5b8c6

View File

@ -126,7 +126,7 @@ class JediCompleter( ThreadedCompleter ):
def _JumpToLocation( self, definition_list ): def _JumpToLocation( self, definition_list ):
if len( definition_list ) == 1: if len( definition_list ) == 1:
definition = list( definition_list )[0] definition = definition_list[0]
if definition.in_builtin_module(): if definition.in_builtin_module():
if isinstance( definition.definition, jedi.keywords.Keyword ): if isinstance( definition.definition, jedi.keywords.Keyword ):
vimsupport.PostVimMessage( vimsupport.PostVimMessage(