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
use StringTypes instead of str when determining the type
[sfa.git]
/
sfa
/
util
/
rspec.py
diff --git
a/sfa/util/rspec.py
b/sfa/util/rspec.py
index
515dd86
..
c030171
100644
(file)
--- a/
sfa/util/rspec.py
+++ b/
sfa/util/rspec.py
@@
-27,10
+27,10
@@
class RSpec:
self.dict = {}
self.schemaDict = {}
self.NSURL = NSURL
- if xml:
+ if xml:
if type(xml) == file:
self.parseFile(xml)
- if type(xml)
== str
:
+ if type(xml)
in StringTypes
:
self.parseString(xml)
self.dict = self.toDict()
if xsd: