From 30e9097985656920f01a72efc1088caa2b8d41b3 Mon Sep 17 00:00:00 2001 From: bertagaz Date: Tue, 14 Jun 2011 15:26:19 +0200 Subject: Imported Upstream version 0.5.29 --- pycryptopp/__init__.py | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 pycryptopp/__init__.py (limited to 'pycryptopp/__init__.py') diff --git a/pycryptopp/__init__.py b/pycryptopp/__init__.py new file mode 100644 index 0000000..055895c --- /dev/null +++ b/pycryptopp/__init__.py @@ -0,0 +1,29 @@ +""" +pycryptopp - Python wrappers for Crypto++ +""" + +__version__ = "unknown" +try: + from _version import __version__ +except ImportError: + # We're running in a tree that hasn't run "./setup.py darcsver", and didn't + # come with a _version.py, so we don't know what our version is. This should + # not happen very often. + pass + +# we import our glue .so here, and then other modules use the copy in +# sys.modules. + +import _pycryptopp +__doc__ = _pycryptopp.__doc__ + +def _import_my_names(thismodule, prefix): + for name in dir(_pycryptopp): + if name.startswith(prefix): + myname = name[len(prefix):] + thismodule[myname] = getattr(_pycryptopp, name) + +import publickey, hash, cipher + +quiet_pyflakes=[__version__, publickey, hash, cipher, _pycryptopp, __doc__, _import_my_names] +del quiet_pyflakes -- cgit v1.2.3