Commits

Anonymous committed 2eb186a

findit: choosing a better name for pymodule in find_definition()

  • Participants
  • Parent commits 9587887

Comments (0)

Files changed (1)

File rope/contrib/findit.py

     A `Location` object is returned if the definition location can be
     determined, otherwise ``None`` is returned.
     """
-    pymodule = project.pycore.get_string_module(code, resource)
-    pyname = rope.base.evaluate.eval_location(pymodule, offset)
+    main_module = project.pycore.get_string_module(code, resource)
+    pyname = rope.base.evaluate.eval_location(main_module, offset)
     if pyname is not None:
         module, lineno = pyname.get_definition_location()
         name = rope.base.worder.Worder(code).get_word_at(offset)