File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -154,15 +154,15 @@ def _handle_version(root):
154
154
"""
155
155
Check if the odML version of a handed in parsed lxml.etree is supported
156
156
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
158
158
contain a supported odML version number, otherwise it is not
159
159
accepted as a valid odML file.
160
160
"""
161
161
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 )
163
163
elif 'version' not in root .attrib :
164
164
raise ParserException ("Could not find format version attribute "
165
- "in odML start tag.\n " )
165
+ "in < odML> tag.\n " )
166
166
elif root .attrib ['version' ] != FORMAT_VERSION :
167
167
msg = ("Cannot read file: invalid odML document format version '%s'. \n "
168
168
"This package supports odML format versions: '%s'."
You can’t perform that action at this time.
0 commit comments