Skip to content

Commit

Permalink
Merge pull request ycm-core#424 from beards/master
Browse files Browse the repository at this point in the history
fix jedi DeprecationWarning
  • Loading branch information
Valloric committed Jul 7, 2013
2 parents 451acc0 + a95195c commit f7ef1aa
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions python/ycm/completers/python/jedi_completer.py
Expand Up @@ -67,10 +67,10 @@ def _GetJediScript( self ):
def ComputeCandidates( self, unused_query, unused_start_column ):
script = self._GetJediScript()

return [ { 'word': str( completion.word ),
return [ { 'word': str( completion.name ),
'menu': str( completion.description ),
'info': str( completion.doc ) }
for completion in script.complete() ]
for completion in script.completions() ]


def DefinedSubcommands( self ):
Expand Down Expand Up @@ -147,7 +147,7 @@ def _JumpToLocation( self, definition_list ):
vimsupport.PostVimMessage( "Builtin modules cannot be displayed." )
else:
vimsupport.JumpToLocation( definition.module_path,
definition.line_nr,
definition.line,
definition.column + 1 )
else:
# multiple definitions
Expand All @@ -158,7 +158,7 @@ def _JumpToLocation( self, definition_list ):
definition.description.encode( 'utf-8' ) } )
else:
defs.append( {'filename': definition.module_path.encode( 'utf-8' ),
'lnum': definition.line_nr,
'lnum': definition.line,
'col': definition.column + 1,
'text': definition.description.encode( 'utf-8' ) } )

Expand Down

0 comments on commit f7ef1aa

Please sign in to comment.