From 39ff7c27ec44cd7d1467be4599672d52c71a9c60 Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Thu, 27 Mar 2014 13:21:28 +0100 Subject: [PATCH] fix some typos --- src/common/gajim.py | 2 +- src/common/jingle_content.py | 2 +- src/common/jingle_xtls.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/common/gajim.py b/src/common/gajim.py index 1a8a6b669..c4d9f87b9 100644 --- a/src/common/gajim.py +++ b/src/common/gajim.py @@ -185,7 +185,7 @@ except Exception: HAVE_FARSTREAM = True try: - if os.name == 'nt' + if os.name == 'nt': os.environ['FS_PLUGIN_PATH'] = 'gtk\\lib\\farstream-0.1' os.environ['GST_PLUGIN_PATH'] = 'gtk\\lib\\gstreamer-0.10' import gi diff --git a/src/common/jingle_content.py b/src/common/jingle_content.py index 9e2fa3742..dbf03a396 100644 --- a/src/common/jingle_content.py +++ b/src/common/jingle_content.py @@ -223,7 +223,7 @@ class JingleContent(object): if cert: try: digest_algo = cert.get_signature_algorithm().split('With')[0] - except AttributeError, e: + except AttributeError as e: # Old py-OpenSSL is missing get_signature_algorithm digest_algo = "sha256" security.addChild('fingerprint').addData(cert.digest( diff --git a/src/common/jingle_xtls.py b/src/common/jingle_xtls.py index 6caa427f3..b2a06bd1b 100644 --- a/src/common/jingle_xtls.py +++ b/src/common/jingle_xtls.py @@ -194,7 +194,7 @@ def check_cert(jid, fingerprint): if cert: try: digest_algo = cert.get_signature_algorithm().split('With')[0] - except AttributeError, e: + except AttributeError as e: # Old py-OpenSSL is missing get_signature_algorithm digest_algo = "sha256" if cert.digest(digest_algo) == fingerprint: