File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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'."
You can’t perform that action at this time.
0 commit comments