Skip to content

symbiose #3

Open
freedomsha wants to merge 437 commits intovkucera:masterfrom
freedomsha:master
Open

symbiose #3
freedomsha wants to merge 437 commits intovkucera:masterfrom
freedomsha:master

Conversation

@freedomsha
Copy link

To obtain a usable taskcoach

@@ -289,13 +304,14 @@ def _get_modpkg_path(dotted_name, pathlist=None):
extension module.
"""
# split off top-most name
parts = dotted_name.split('.', 1)
parts = dotted_name.split(".", 1)

if len(parts) > 1:
# we have a dotted path, import top-level package
try:
file, pathname, description = imp.find_module(parts[0], pathlist)
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why imp.find_module() is not changed.
https://docs.python.org/3.11/library/imp.html :
Deprecated since version 3.3: Use importlib.util.find_spec() instead unless Python 3.3 compatibility is required, in which case use importlib.find_loader(). For example usage of the former case, see the Examples section of the importlib documentation.

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.

1 participant