From 2e243355f51654c8c6392c80a17b090f9f012fd1 Mon Sep 17 00:00:00 2001 From: jvoisin Date: Mon, 24 Sep 2018 19:50:24 +0200 Subject: Fix some minor formatting issues --- libmat2/archive.py | 2 +- libmat2/office.py | 2 +- libmat2/pdf.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'libmat2') diff --git a/libmat2/archive.py b/libmat2/archive.py index 7b9f335..dd63c50 100644 --- a/libmat2/archive.py +++ b/libmat2/archive.py @@ -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? diff --git a/libmat2/office.py b/libmat2/office.py index 07bbbb9..c6b324b 100644 --- a/libmat2/office.py +++ b/libmat2/office.py @@ -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 diff --git a/libmat2/pdf.py b/libmat2/pdf.py index bc7c8a6..5e19ef7 100644 --- a/libmat2/pdf.py +++ b/libmat2/pdf.py @@ -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 -- cgit v1.3