From 11fdbb35325530daf834d5ba1222b2b7ea7f04a0 Mon Sep 17 00:00:00 2001 From: Tony Mack Date: Thu, 15 Jul 2010 20:41:59 +0000 Subject: [PATCH] merge from geni branch --- 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.47.0