From: Tony Mack Date: Tue, 22 Dec 2009 02:51:17 +0000 (+0000) Subject: use StringTypes instead of str when determining the type X-Git-Tag: sfa-0.9-7~91 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;ds=sidebyside;h=207ce5fc6f0a4ed75bd5aa8808ea9aaab3c50c79;p=sfa.git use StringTypes instead of str when determining the type --- diff --git a/sfa/util/rspec.py b/sfa/util/rspec.py index 515dd864..c0301714 100644 --- 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: