RefactoringRope/CodeAssistClient.py

changeset 305
9fb032952a0a
parent 303
313fbf9c86d9
child 320
91b171fdd85f
equal deleted inserted replaced
304:72f5a65d0518 305:9fb032952a0a
404 import rope.contrib.findit 404 import rope.contrib.findit
405 try: 405 try:
406 location = rope.contrib.findit.find_definition( 406 location = rope.contrib.findit.find_definition(
407 self.__project, source, offset, resource) 407 self.__project, source, offset, resource)
408 except Exception as err: 408 except Exception as err:
409 location = None
409 errorDict = self.__handleRopeError(err) 410 errorDict = self.__handleRopeError(err)
410 411
411 if location is not None: 412 if location is not None:
412 result["Location"] = { 413 result["Location"] = {
413 "ModulePath": location.resource.real_path, 414 "ModulePath": location.resource.real_path,

eric ide

mercurial