git://git.onelab.eu
/
nepi.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
first set of semantic changes for python3
[nepi.git]
/
src
/
nepi
/
util
/
sfarspec_proc.py
diff --git
a/src/nepi/util/sfarspec_proc.py
b/src/nepi/util/sfarspec_proc.py
index
c9da060
..
d5e0735
100644
(file)
--- a/
src/nepi/util/sfarspec_proc.py
+++ b/
src/nepi/util/sfarspec_proc.py
@@
-24,9
+24,6
@@
except ImportError:
log.debug("Package sfa-common not installed.\
Could not import sfa.rspecs.rspec and sfa.util.xrn")
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,
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):
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 = []
return obj
if isinstance(obj, list):
objcopy = []