◐ Shell
clean mode source ↗

Prefer `import` to `__import__` by zwimer · Pull Request #82 · gitpython-developers/gitdb

What

In __init__.py there is a loop that invokes __import__ here:

Since the loop only has one item this PR convert refactors it to use the standard import.

Why

Some tooling only works with modules to be imported via import as the packages names are resolve-able without executing code, which __import__ prevents.

Possible Changes

If it is desired to have smmap added into globals() of __init__.py; I can remove the del smmap line. Right now it is there because __import__, which import is replacing, does not add smmap to globals()