summaryrefslogtreecommitdiff
path: root/python-gnutls-1.1.9/gnutls/library/__init__.py
diff options
context:
space:
mode:
authork clair <kclair@riseup.net>2012-10-09 12:13:13 -0700
committerk clair <kclair@riseup.net>2012-10-09 12:13:13 -0700
commit7ebbbaaeef0ded0f39b8bf863ee7fd324b19c9f9 (patch)
tree0f18e1f7b54df0b1daee3297b12954905cc6f0d8 /python-gnutls-1.1.9/gnutls/library/__init__.py
Add source files for python-gnutls version 1.1.9
Diffstat (limited to 'python-gnutls-1.1.9/gnutls/library/__init__.py')
-rw-r--r--python-gnutls-1.1.9/gnutls/library/__init__.py17
1 files changed, 17 insertions, 0 deletions
diff --git a/python-gnutls-1.1.9/gnutls/library/__init__.py b/python-gnutls-1.1.9/gnutls/library/__init__.py
new file mode 100644
index 0000000..494460f
--- /dev/null
+++ b/python-gnutls-1.1.9/gnutls/library/__init__.py
@@ -0,0 +1,17 @@
+# Copyright (C) 2007 AG Projects. See LICENSE for details.
+#
+
+from gnutls.library import _gnutls_init
+from gnutls.library import constants
+from gnutls.library import types
+from gnutls.library import errors
+from gnutls.library import functions
+
+__need_version__ = '2.4.1'
+
+if functions.gnutls_check_version(__need_version__) is None:
+ version = functions.gnutls_check_version(None)
+ raise RuntimeError("Found GNUTLS library version %s, but at least version %s is required" % (version, __need_version__))
+if functions.gnutls_extra_check_version(__need_version__) is None:
+ version = functions.gnutls_extra_check_version(None)
+ raise RuntimeError("Found GNUTLS extra library version %s, but at least version %s is required" % (version, __need_version__))