diff options
author | Nicholas Car <nicholas.car@surroundaustralia.com> | 2020-05-17 16:38:31 +1000 |
---|---|---|
committer | Nicholas Car <nicholas.car@surroundaustralia.com> | 2020-05-17 16:38:31 +1000 |
commit | 78e99a408859f0749ddfc628cbad60f4c5c93aea (patch) | |
tree | faa3857d33bdb59a59558569c5705c60fdc355e6 /rdflib/plugins/serializers/xmlwriter.py | |
parent | dac682fcbf8ea708175519e4824be7a937073749 (diff) | |
download | rdflib-78e99a408859f0749ddfc628cbad60f4c5c93aea.tar.gz |
changes for flake8
Diffstat (limited to 'rdflib/plugins/serializers/xmlwriter.py')
-rw-r--r-- | rdflib/plugins/serializers/xmlwriter.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/rdflib/plugins/serializers/xmlwriter.py b/rdflib/plugins/serializers/xmlwriter.py index b6f0acb5..99d1e767 100644 --- a/rdflib/plugins/serializers/xmlwriter.py +++ b/rdflib/plugins/serializers/xmlwriter.py @@ -86,7 +86,7 @@ class XMLWriter(object): def text(self, text): self.__close_start_tag() - if "<" in text and ">" in text and not "]]>" in text: + if "<" in text and ">" in text and "]]>" not in text: self.stream.write("<![CDATA[") self.stream.write(text) self.stream.write("]]>") @@ -100,8 +100,8 @@ class XMLWriter(object): for pre, ns in self.extra_ns.items(): if uri.startswith(ns): if pre != "": - return ":".join(pre, uri[len(ns) :]) + return ":".join(pre, uri[len(ns):]) else: - return uri[len(ns) :] + return uri[len(ns):] return self.nm.qname_strict(uri) |