git://git.onelab.eu
/
sfa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a12041c
)
fix bug in urn_to_hrn()
author
Tony Mack
<tmack@cs.princeton.edu>
Fri, 17 Sep 2010 00:29:41 +0000
(
00:29
+0000)
committer
Tony Mack
<tmack@cs.princeton.edu>
Fri, 17 Sep 2010 00:29:41 +0000
(
00:29
+0000)
sfa/util/namespace.py
patch
|
blob
|
history
diff --git
a/sfa/util/namespace.py
b/sfa/util/namespace.py
index
d036f06
..
53a2800
100644
(file)
--- 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)