1. Steve Losh
  2. rope

Commits

Ali Gholami Rudi  committed 1a9d7de

findit: fixed an invalid reference

  • Participants
  • Parent commits b0b2a6c
  • Branches trunk

Comments (0)

Files changed (1)

File rope/contrib/findit.py

View file
     """
     fixer = fixsyntax.FixSyntax(project.pycore, code, resource, maxfixes)
     main_module = fixer.get_pymodule()
-    pyname = fixer.find_pyname_at(offset)
+    pyname = fixer.pyname_at(offset)
     if pyname is not None:
         module, lineno = pyname.get_definition_location()
         name = rope.base.worder.Worder(code).get_word_at(offset)