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:
16867af
)
don't try to guess an hrn's type
author
Tony Mack
<tmack@paris.CS.Princeton.EDU>
Wed, 9 Jan 2013 20:46:43 +0000
(15:46 -0500)
committer
Tony Mack
<tmack@paris.CS.Princeton.EDU>
Wed, 9 Jan 2013 20:46:43 +0000
(15:46 -0500)
sfa/util/xrn.py
patch
|
blob
|
history
diff --git
a/sfa/util/xrn.py
b/sfa/util/xrn.py
index
dfcf3e5
..
b0db4c1
100644
(file)
--- a/
sfa/util/xrn.py
+++ b/
sfa/util/xrn.py
@@
-117,15
+117,7
@@
class Xrn:
for urn in urns:
xrn = Xrn(xrn=urn)
for urn in urns:
xrn = Xrn(xrn=urn)
- if not xrn.type:
- # If an xrn doesn't have a type its probably a hrn.
- # We have to make some assumptions on the hrn's type
- # based on the contents of the hrn.
- if type == 'sliver' and '-' in xrn.leaf:
- urn_list.append(urn)
- elif type != 'sliver' and not '-' in xrn.leaf:
- urn_list.append(urn)
- elif (xrn.type == type):
+ if (xrn.type == type):
# Xrn is probably a urn so we can just compare types
urn_list.append(urn)
return urn_list
# Xrn is probably a urn so we can just compare types
urn_list.append(urn)
return urn_list