Skip to content

Remove undefined __email__ from nacl.__all__ - #974

Open
prashant1221 wants to merge 1 commit into
pyca:mainfrom
prashant1221:fix-undefined-email-in-all
Open

prashant1221 wants to merge 1 commit into
pyca:mainfrom
prashant1221:fix-undefined-email-in-all

Conversation

@prashant1221

Copy link
Copy Markdown

In PyNaCl 1.6.0+ , src/nacl/__init__.py has:

__all__ = [
    "__email__",
    "__uri__",
    "__version__",
]

but only __uri__ and __version__ are defined. __email__ was removed along with __title__, __summary__, __author__, __license__ and __copyright__ (all defined in 1.5.0), but it was left in __all__.

Reproduce:

$ python3 -c "from nacl import *"
AttributeError: module 'nacl' has no attribute '__email__'

Suggested fix: drop "__email__" from __all__ (or restore the attribute).

__email__ was removed from nacl/__init__.py but left in __all__, so
'from nacl import *' raises AttributeError: module 'nacl' has no
attribute '__email__'. Drop it from __all__.

Signed-off-by: Prashant S Chauhan <[email protected]>
@prashant1221

Copy link
Copy Markdown
Author

@reaperhulk @alex please review this change.

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

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant