You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But because ast normalises the module name when parsing, node.module == "xml.etree" the current sorted_children would require there being no whitespaces between the module names and dots; so rope currently would error out on above code.
Describe the bug
Context: found during discussion of #538
You can add spaces between the dots of import statement, this is valid Python code:
But because
ast
normalises the module name when parsing,node.module == "xml.etree"
the currentsorted_children
would require there being no whitespaces between the module names and dots; so rope currently would error out on above code.To Reproduce
Steps to reproduce the behavior:
Use one of the refactoring that uses patchedast, like extract code
Refactoring should be successful instead of currently producing error like
Editor information (please complete the following information):
The text was updated successfully, but these errors were encountered: