X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=sfa%2Fmethods%2FResolve.py;h=fc12df1b4b7867ccd89117afe4e9e9fb1e6a8e72;hb=30d9951e075d93127c3909dcb41be09b420b3525;hp=dc34f759dd3e28149ebac29f291ac7d57276866c;hpb=4f9d407d0ce159bdb359e9ab500bf88b5f586e62;p=sfa.git diff --git a/sfa/methods/Resolve.py b/sfa/methods/Resolve.py index dc34f759..fc12df1b 100644 --- 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 @@ -37,7 +35,7 @@ class Resolve(Method): 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]