diff options
Diffstat (limited to 'scripts/x509-dot.py')
-rw-r--r-- | scripts/x509-dot.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/x509-dot.py b/scripts/x509-dot.py index 06263e37..a3845c35 100644 --- a/scripts/x509-dot.py +++ b/scripts/x509-dot.py @@ -32,7 +32,7 @@ class x509(object): text = f.read() f.close() - if text.find("-----BEGIN") >= 0: + if "-----BEGIN" in text: self.pow = POW.pemRead(POW.X509_CERTIFICATE, text) else: self.pow = POW.derRead(POW.X509_CERTIFICATE, text) |