Skip to content

Don't "from <module> import <class> on bare .py files in a package. Instead use __all__ #22

Open
@terrysimons

Description

@terrysimons

The current implementation breaks on Python 3 because of the way the modules are being imported internally.

Instead of doing:

from firebase import Firebase

you should do:

__all__ = ['firebase']

This fixes Python 3's ability to import the module.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions