changeset 3aca86886964 in /home/hg/repos/gajim

details:http://hg.gajim.org/gajim?cmd=changeset;node=3aca86886964
description: check in feature window if pyopenssl >= 0.12 and if pyasn1 is 
available

diffstat:

 src/features_window.py |  5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diffs (15 lines):

diff -r a81b0b6fc583 -r 3aca86886964 src/features_window.py
--- a/src/features_window.py    Thu Jan 05 11:56:22 2012 +0100
+++ b/src/features_window.py    Thu Jan 05 13:50:15 2012 +0100
@@ -169,6 +169,11 @@
         try:
             import OpenSSL.SSL
             import OpenSSL.crypto
+            ver = OpenSSL.__version__
+            ver_l = [int(i) for i in ver.split('.')]
+            if ver_l < [0, 12]:
+                raise ImportError
+            import pyasn1
         except Exception:
             return False
         return True
_______________________________________________
Commits mailing list
Commits@gajim.org
http://lists.gajim.org/cgi-bin/listinfo/commits

Reply via email to