fix bug in urn_to_hrn()
authorTony Mack <tmack@cs.princeton.edu>
Fri, 17 Sep 2010 00:29:41 +0000 (00:29 +0000)
committerTony Mack <tmack@cs.princeton.edu>
Fri, 17 Sep 2010 00:29:41 +0000 (00:29 +0000)
sfa/util/namespace.py

index d036f06..53a2800 100644 (file)
@@ -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)