Update providers.pyx

allow string imports outside of packages
This commit is contained in:
Carlos Horn 2023-08-09 23:40:08 +02:00 committed by Carlos
parent abf2a2577c
commit 7bed1aed5d
1 changed files with 1 additions and 1 deletions

View File

@ -5034,7 +5034,7 @@ def _resolve_calling_module():
def _resolve_calling_package_name():
module = _resolve_calling_module()
return module.__package__
return getattr(module, "__package__", None)
cpdef _copy_parent(object from_, object to, dict memo):