Skip to content

Commit b8c9ece

Browse files
authored
Merge pull request python-mode#802 from boatx/bugfix/issue-728
Fix python-mode#728, pass rope project to ImportTools init
2 parents 371eba4 + f69f10a commit b8c9ece

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pymode/rope.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -893,7 +893,7 @@ def _insert_import(name, module, ctx):
893893
return True
894894

895895
pyobject = ctx.project.pycore.resource_to_pyobject(ctx.resource)
896-
import_tools = importutils.ImportTools(ctx.project.pycore)
896+
import_tools = importutils.ImportTools(ctx.project)
897897
module_imports = import_tools.module_imports(pyobject)
898898
new_import = importutils.FromImport(module, 0, [[name, None]])
899899
module_imports.add_import(new_import)

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy