Skip to content

Bugfix with undefined children_hooks when package is None#565

Merged
edschofield merged 1 commit intoPythonCharmers:masterfrom
azjps:master
Feb 21, 2024
Merged

Bugfix with undefined children_hooks when package is None#565
edschofield merged 1 commit intoPythonCharmers:masterfrom
azjps:master

Conversation

@azjps
Copy link

@azjps azjps commented Jun 16, 2020

Fix the code path in touch_import_top() where package is None (e.g. import six instead of from six import string_types). Fixed a minor bug in this code path, so that a custom fixer can use it.
(touch_import_top() is always called with a package within the futurize codebase.)

touch_import_top() is always called with a package within
the futurize codebase, but it does have a code path where
package can be None (e.g. import six instead of from six
import string_types). Fixed a minor bug in this code path,
so that a custom fixer can use it.

Change-Id: Iec2891586fe852e35a91c69d2fb146645d7c53dd
@edschofield edschofield merged commit 679e2fe into PythonCharmers:master Feb 21, 2024
@edschofield
Copy link
Contributor

Thanks @azjps !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants