python-firebasin icon indicating copy to clipboard operation
python-firebasin copied to clipboard

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

Open terrysimons opened this issue 11 years ago • 0 comments

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.

terrysimons avatar Apr 08 '15 18:04 terrysimons