Skip to content

Commit c2ae4b5

Browse files
committed
[xmlparser] Fixing typos
1 parent c8e6157 commit c2ae4b5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

odml/tools/xmlparser.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -154,15 +154,15 @@ def _handle_version(root):
154154
"""
155155
Check if the odML version of a handed in parsed lxml.etree is supported
156156
by the current library and raise an Exception otherwise.
157-
:param root: Root node of a parsed lxml.etree. Teh root tag has to
157+
:param root: Root node of a parsed lxml.etree. The root tag has to
158158
contain a supported odML version number, otherwise it is not
159159
accepted as a valid odML file.
160160
"""
161161
if root.tag != 'odML':
162-
raise ParserException("Expecting <odML> start tag but got <%s>.\n" % root.tag)
162+
raise ParserException("Expecting <odML> tag but got <%s>.\n" % root.tag)
163163
elif 'version' not in root.attrib:
164164
raise ParserException("Could not find format version attribute "
165-
"in odML start tag.\n")
165+
"in <odML> tag.\n")
166166
elif root.attrib['version'] != FORMAT_VERSION:
167167
msg = ("Cannot read file: invalid odML document format version '%s'. \n"
168168
"This package supports odML format versions: '%s'."

0 commit comments

Comments
 (0)