From 93c7264013d3bef712023ae955d50b18cdbeb50b Mon Sep 17 00:00:00 2001 From: Josh Karlin Date: Thu, 15 Jul 2010 19:52:54 +0000 Subject: [PATCH] updated urn_to_hrn to be compliant with standard --- sfa/util/namespace.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sfa/util/namespace.py b/sfa/util/namespace.py index c771d717..d036f064 100644 --- a/sfa/util/namespace.py +++ b/sfa/util/namespace.py @@ -66,8 +66,7 @@ def urn_to_hrn(urn): name = urn[len(URN_PREFIX):] hrn_parts = name.split("+") - # type is always the second to last element in the list - type = hrn_parts.pop(-2) + type = hrn_parts.pop(2) # convert hrn_parts (list) into hrn (str) by doing the following # remove blank elements -- 2.43.0