From: Tony Mack Date: Fri, 17 Sep 2010 00:29:41 +0000 (+0000) Subject: fix bug in urn_to_hrn() X-Git-Tag: sfa-1.0-2~33 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=ec67a30a13f1fd24e9101413aabdb552e33f10aa;p=sfa.git fix bug in urn_to_hrn() --- diff --git a/sfa/util/namespace.py b/sfa/util/namespace.py index d036f064..53a28005 100644 --- a/sfa/util/namespace.py +++ b/sfa/util/namespace.py @@ -76,7 +76,7 @@ def urn_to_hrn(urn): # Remove the authority name (e.g. '.sa') if type == 'authority': - hrn = hrn[:hrn.rindex('.')] + hrn = hrn.replace ('.sa', '') return str(hrn), str(type)