From 64d75740c485b8e3ac3108b916cdf72ad41b0611 Mon Sep 17 00:00:00 2001 From: Donald Stufft <donald.stufft@gmail.com> Date: Fri, 22 Feb 2013 09:36:47 -0500 Subject: [PATCH] Add meta information to the nacl package --- nacl/__init__.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/nacl/__init__.py b/nacl/__init__.py index 6642344d..53b5d256 100644 --- a/nacl/__init__.py +++ b/nacl/__init__.py @@ -1 +1,13 @@ +from . import __about__ from . import hash # pylint: disable=W0622 + + +__all__ = ["hash"] + __about__.__all__ + + +# - Meta Information - +# This is pretty ugly +for attr in __about__.__all__: + if hasattr(__about__, attr): + globals()[attr] = getattr(__about__, attr) +# - End Meta Information - -- GitLab