diff options
| author | jvoisin | 2018-09-24 19:50:24 +0200 |
|---|---|---|
| committer | jvoisin | 2018-09-24 19:50:24 +0200 |
| commit | 2e243355f51654c8c6392c80a17b090f9f012fd1 (patch) | |
| tree | b4bb244443ab0566cdb741b1c91a112ff8149214 /libmat2 | |
| parent | 174d4a0ac09c2e9d4a9aa3677a442c05459b8309 (diff) | |
Fix some minor formatting issues
Diffstat (limited to 'libmat2')
| -rw-r--r-- | libmat2/archive.py | 2 | ||||
| -rw-r--r-- | libmat2/office.py | 2 | ||||
| -rw-r--r-- | libmat2/pdf.py | 2 |
3 files changed, 3 insertions, 3 deletions
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): | |||
| 21 | 21 | ||
| 22 | # Those are the files that we _do not_ want to keep, | 22 | # Those are the files that we _do not_ want to keep, |
| 23 | # no matter if they are supported or not. | 23 | # no matter if they are supported or not. |
| 24 | files_to_omit = set() # type: Set[Pattern] | 24 | files_to_omit = set() # type: Set[Pattern] |
| 25 | 25 | ||
| 26 | # what should the parser do if it encounters an unknown file in | 26 | # what should the parser do if it encounters an unknown file in |
| 27 | # the archive? | 27 | # 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): | |||
| 21 | for _, (key, value) in ET.iterparse(full_path, ("start-ns", )): | 21 | for _, (key, value) in ET.iterparse(full_path, ("start-ns", )): |
| 22 | # The ns[0-9]+ namespaces are reserved for interal usage, so | 22 | # The ns[0-9]+ namespaces are reserved for interal usage, so |
| 23 | # we have to use an other nomenclature. | 23 | # we have to use an other nomenclature. |
| 24 | if re.match('^ns[0-9]+$', key, re.I): #pragma: no cover | 24 | if re.match('^ns[0-9]+$', key, re.I): # pragma: no cover |
| 25 | key = 'mat' + key[2:] | 25 | key = 'mat' + key[2:] |
| 26 | 26 | ||
| 27 | namespace_map[key] = value | 27 | 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 | |||
| 17 | from . import abstract | 17 | from . import abstract |
| 18 | 18 | ||
| 19 | poppler_version = Poppler.get_version() | 19 | poppler_version = Poppler.get_version() |
| 20 | if LooseVersion(poppler_version) < LooseVersion('0.46'): # pragma: no cover | 20 | if LooseVersion(poppler_version) < LooseVersion('0.46'): # pragma: no cover |
| 21 | raise ValueError("MAT2 needs at least Poppler version 0.46 to work. \ | 21 | raise ValueError("MAT2 needs at least Poppler version 0.46 to work. \ |
| 22 | The installed version is %s." % poppler_version) # pragma: no cover | 22 | The installed version is %s." % poppler_version) # pragma: no cover |
| 23 | 23 | ||
