first set of semantic changes for python3
[nepi.git] / src / nepi / util / sfarspec_proc.py
index c9da060..d5e0735 100644 (file)
@@ -24,9 +24,6 @@ except ImportError:
     log.debug("Package sfa-common not installed.\
          Could not import sfa.rspecs.rspec and sfa.util.xrn")
 
-from types import StringTypes, ListType
-
-
 class SfaRSpecProcessing(object):
     """
     Class to process SFA RSpecs, parse the RSpec replies such as Advertisement RSpecs,
@@ -37,7 +34,7 @@ class SfaRSpecProcessing(object):
         self.config = config 
 
     def make_dict_rec(self, obj):
-        if not obj or isinstance(obj, (StringTypes, bool)):
+        if not obj or isinstance(obj, (str, bool)):
             return obj
         if isinstance(obj, list):
             objcopy = []