Fix some minor formatting issues
This commit is contained in:
parent
174d4a0ac0
commit
2e243355f5
8 changed files with 15 additions and 13 deletions
|
@ -21,7 +21,7 @@ class ArchiveBasedAbstractParser(abstract.AbstractParser):
|
|||
|
||||
# Those are the files that we _do not_ want to keep,
|
||||
# no matter if they are supported or not.
|
||||
files_to_omit = set() # type: Set[Pattern]
|
||||
files_to_omit = set() # type: Set[Pattern]
|
||||
|
||||
# what should the parser do if it encounters an unknown file in
|
||||
# the archive?
|
||||
|
|
|
@ -21,7 +21,7 @@ def _parse_xml(full_path: str):
|
|||
for _, (key, value) in ET.iterparse(full_path, ("start-ns", )):
|
||||
# The ns[0-9]+ namespaces are reserved for interal usage, so
|
||||
# we have to use an other nomenclature.
|
||||
if re.match('^ns[0-9]+$', key, re.I): #pragma: no cover
|
||||
if re.match('^ns[0-9]+$', key, re.I): # pragma: no cover
|
||||
key = 'mat' + key[2:]
|
||||
|
||||
namespace_map[key] = value
|
||||
|
|
|
@ -17,7 +17,7 @@ from gi.repository import Poppler, GLib
|
|||
from . import abstract
|
||||
|
||||
poppler_version = Poppler.get_version()
|
||||
if LooseVersion(poppler_version) < LooseVersion('0.46'): # pragma: no cover
|
||||
if LooseVersion(poppler_version) < LooseVersion('0.46'): # pragma: no cover
|
||||
raise ValueError("MAT2 needs at least Poppler version 0.46 to work. \
|
||||
The installed version is %s." % poppler_version) # pragma: no cover
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue