fix some typos

This commit is contained in:
Yann Leboulanger 2014-03-27 13:21:28 +01:00
parent 15a4a178ca
commit 39ff7c27ec
3 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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(

View File

@ -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: