From 391f12eeab7ee624298fb7f6a15e3cb6582975e6 Mon Sep 17 00:00:00 2001 From: Emmanuel Gil Peyrot Date: Sun, 23 Oct 2016 14:15:02 +0100 Subject: Transform an if into an elif in cert parsing. --- slixmpp/xmlstream/cert.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/slixmpp/xmlstream/cert.py b/slixmpp/xmlstream/cert.py index d357b326..28ef585a 100644 --- a/slixmpp/xmlstream/cert.py +++ b/slixmpp/xmlstream/cert.py @@ -76,7 +76,7 @@ def extract_names(raw_cert): name_type = name.getName() if name_type == 'dNSName': results['DNS'].add(decode_str(name.getComponent())) - if name_type == 'uniformResourceIdentifier': + elif name_type == 'uniformResourceIdentifier': value = decode_str(name.getComponent()) if value.startswith('xmpp:'): results['URI'].add(value[5:]) -- cgit v1.2.3