Skip to content

implict import a module named test #259

Open
@abc19899

Description

@abc19899

after I dive to py3 using futurize, I find that my module name "test.py" will automaitcally be imported. I found out it's because the below code:

from future import standard_library
standard_library.install_aliases()

which write:

try:
    import test
except ImportError:
    pass

as implict relative import is allowed in py2, it imports my "test.py" instead of the standard test module

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions