diff options
-rw-r--r-- | Lib/xmllib.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/xmllib.py b/Lib/xmllib.py index 0891158..c74f71e 100644 --- a/Lib/xmllib.py +++ b/Lib/xmllib.py @@ -495,7 +495,7 @@ class XMLParser: self.syntax_error('xml:namespace prefix not unique') self.__namespaces[prefix] = attrdict['ns'] else: - if string.find(string.lower(name), 'xml') >= 0: + if string.lower(name) == 'xml': self.syntax_error('illegal processing instruction target name') self.handle_proc(name, rawdata[k:j]) return end.end(0) |