summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrandomfox <61060019+randomfox@users.noreply.github.com>2020-04-14 14:33:52 -0400
committerGitHub <noreply@github.com>2020-04-14 14:33:52 -0400
commitd67b8e3d2682eb70248d7070d860dabe5a003d52 (patch)
tree422bb2fd169e40baa5bbdb0a2997494caf86c797
parentd5760c7a02ed50e36da5aac5aa838a3137701944 (diff)
downloadm2crypto-d67b8e3d2682eb70248d7070d860dabe5a003d52.tar.gz
Fixed syntax warning on line 44.
Replaced the 'is not' with '!='
-rw-r--r--M2Crypto/X509.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/M2Crypto/X509.py b/M2Crypto/X509.py
index 3f2f96d..c4848bb 100644
--- a/M2Crypto/X509.py
+++ b/M2Crypto/X509.py
@@ -41,7 +41,7 @@ def new_extension(name, value, critical=0, _pyfree=1):
Create new X509_Extension instance.
"""
if name == 'subjectKeyIdentifier' and \
- value.strip('0123456789abcdefABCDEF:') is not '':
+ value.strip('0123456789abcdefABCDEF:') != '':
raise ValueError('value must be precomputed hash')
ctx = m2.x509v3_set_nconf()
x509_ext_ptr = m2.x509v3_ext_conf(None, ctx, name, value)