diff options
author | Rob Austein <sra@hactrn.net> | 2009-09-11 18:03:59 +0000 |
---|---|---|
committer | Rob Austein <sra@hactrn.net> | 2009-09-11 18:03:59 +0000 |
commit | e97c9b25332fc4a8a441f2970b4acb8122875250 (patch) | |
tree | c82a6eb6a724452f89e80b6012ab10e705a425c2 /rpkid/rpki/x509.py | |
parent | f7579e4d9a43785ee3e5b80d51e12c04c333a901 (diff) |
Cleanup
svn path=/rpkid/rpki/async.py; revision=2748
Diffstat (limited to 'rpkid/rpki/x509.py')
-rw-r--r-- | rpkid/rpki/x509.py | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/rpkid/rpki/x509.py b/rpkid/rpki/x509.py index 540209d0..6d63bc7e 100644 --- a/rpkid/rpki/x509.py +++ b/rpkid/rpki/x509.py @@ -175,7 +175,7 @@ class DER_object(object): self.clear() self.DER = value return - raise rpki.exceptions.DERObjectConversionError, "Can't honor conversion request %s" % repr(kw) + raise rpki.exceptions.DERObjectConversionError, "Can't honor conversion request %r" % (kw,) def get_DER(self): """ @@ -573,7 +573,7 @@ class PKCS10(DER_object): for method, location in req_exts.get("subjectInfoAccess", ()): if rpki.oids.oid2name.get(method) == "id-ad-caRepository" and \ (location[0] != "uri" or (location[1].startswith("rsync://") and not location[1].endswith("/"))): - raise rpki.exceptions.BadPKCS10, "Certificate request includes bad SIA component: %s" % repr(location) + raise rpki.exceptions.BadPKCS10, "Certificate request includes bad SIA component: %r" % location # This one is an implementation restriction. I don't yet # understand what the spec is telling me to do in this case. @@ -786,8 +786,7 @@ class CMS_object(DER_object): raise except: if self.print_on_der_error: - rpki.log.debug("Problem parsing DER CMS message, might not really be DER: %s" - % repr(self.get_DER())) + rpki.log.debug("Problem parsing DER CMS message, might not really be DER: %r" % self.get_DER()) raise rpki.exceptions.UnparsableCMSDER if cms.eContentType() != self.econtent_oid: @@ -800,7 +799,7 @@ class CMS_object(DER_object): for x in certs: rpki.log.debug("Received CMS cert issuer %s subject %s SKI %s" % (x.getIssuer(), x.getSubject(), x.hSKI())) for c in crls: - rpki.log.debug("Received CMS CRL issuer %s" % repr(c.getIssuer())) + rpki.log.debug("Received CMS CRL issuer %r" % (c.getIssuer(),)) store = POW.X509Store() |