diff options
author | Rob Austein <sra@hactrn.net> | 2010-01-07 17:23:05 +0000 |
---|---|---|
committer | Rob Austein <sra@hactrn.net> | 2010-01-07 17:23:05 +0000 |
commit | 263ecf49c653495ce46fde464567e29029408783 (patch) | |
tree | 4fa1f6f703eecc9164d4fa987b4062084ffb0497 /scripts/x509-dot.py | |
parent | c1654df50faaf3313fefa7a103026d0dd5f52b67 (diff) |
Cleanup of substring checks.
svn path=/myrpki/arin-rootcert.py; revision=2935
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) |