fix some typos
This commit is contained in:
parent
15a4a178ca
commit
39ff7c27ec
|
@ -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
|
||||
|
|
|
@ -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(
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue