From 3cbf73ef3ad0220291dbadb1d80d02928482b845 Mon Sep 17 00:00:00 2001 From: Thierry Parmentelat Date: Sun, 3 Jun 2012 14:06:00 +0200 Subject: [PATCH] xrn was breaking the tests --- sfa/util/xrn.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sfa/util/xrn.py b/sfa/util/xrn.py index c9c8db0b..083e620f 100644 --- a/sfa/util/xrn.py +++ b/sfa/util/xrn.py @@ -93,11 +93,12 @@ class Xrn: return False ########## basic tools on URNs - URN_PREFIX = "urn:publicid:idn" + URN_PREFIX = "urn:publicid:IDN" + URN_PREFIX_lower = "urn:publicid:idn" @staticmethod def is_urn (text): - return text.lower().startswith(Xrn.URN_PREFIX) + return text.lower().startswith(Xrn.URN_PREFIX_lower) @staticmethod def urn_full (urn): -- 2.47.0