Skip to content

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

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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