git://git.onelab.eu
/
sfa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
do not depend on types.StringTypes anymore
[sfa.git]
/
sfa
/
methods
/
Resolve.py
diff --git
a/sfa/methods/Resolve.py
b/sfa/methods/Resolve.py
index
dc34f75
..
fc12df1
100644
(file)
--- a/
sfa/methods/Resolve.py
+++ b/
sfa/methods/Resolve.py
@@
-1,5
+1,3
@@
-import types
-
from sfa.util.xrn import Xrn, urn_to_hrn
from sfa.util.method import Method
from sfa.util.xrn import Xrn, urn_to_hrn
from sfa.util.method import Method
@@
-37,7
+35,7
@@
class Resolve(Method):
if 'details' in options: details=options['details']
else: details=False
type = None
if 'details' in options: details=options['details']
else: details=False
type = None
- if not isinstance(xrns,
types.ListType
):
+ if not isinstance(xrns,
list
):
type = Xrn(xrns).get_type()
xrns=[xrns]
hrns = [urn_to_hrn(xrn)[0] for xrn in xrns]
type = Xrn(xrns).get_type()
xrns=[xrns]
hrns = [urn_to_hrn(xrn)[0] for xrn in xrns]