In the __init__.py, we have
__init__.py
__all__ = [DaemonContext]
But according to the documentation https://docs.python.org/3/reference/simple_stmts.html?highlight=all#the-import-statement “The public names defined by a module are determined by checking the module’s namespace for a variable named __all__; if defined, it must be a sequence of strings which are names defined or imported by that module.”
__all__
Indeed, star-import
from daemon import *
currently fails with error.
Therefore, we should rather have
__all__ = ["DaemonContext"]
Thank you.
This bug is resolved in ‘python-daemon’ version 2.3.1, released today.
Metadata Update from @bignose: - Issue close_status updated to: Fixed - Issue status updated to: Closed (was: Open)