diff options
| author | jvoisin | 2015-12-19 20:17:30 +0100 |
|---|---|---|
| committer | jvoisin | 2015-12-19 20:17:30 +0100 |
| commit | e51ae6bdaa9cbcbf9a3b71bbefd68a6755d94030 (patch) | |
| tree | 0492ac5178ff6c8d49672dcd37f2c25e835efb62 /libmat/office.py | |
| parent | 27746e4cd822cf80d467fdff40f3e7509a0d9af2 (diff) | |
Add `gi.require_version('Poppler', '0.18')` to silence warnings
Closes https://labs.riseup.net/code/issues/10550
Also known as "pygi is emitting a lot of warnings"
Diffstat (limited to '')
| -rw-r--r-- | libmat/office.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libmat/office.py b/libmat/office.py index c3a9811..e2b1915 100644 --- a/libmat/office.py +++ b/libmat/office.py | |||
| @@ -11,6 +11,8 @@ import zipfile | |||
| 11 | 11 | ||
| 12 | try: | 12 | try: |
| 13 | import cairo | 13 | import cairo |
| 14 | import gi | ||
| 15 | gi.require_version('Poppler', '0.18') | ||
| 14 | from gi.repository import Poppler | 16 | from gi.repository import Poppler |
| 15 | except ImportError: | 17 | except ImportError: |
| 16 | logging.info('office.py loaded without PDF support') | 18 | logging.info('office.py loaded without PDF support') |
