[Pkg-privacy-commits] [mat] 55/68: Add `gi.require_version('Poppler', '0.18')` to silence warnings
Sascha Steinbiss
sascha at steinbiss.name
Sun Jan 3 12:32:43 UTC 2016
This is an automated email from the git hooks/post-receive script.
sascha-guest pushed a commit to branch master
in repository mat.
commit e51ae6bdaa9cbcbf9a3b71bbefd68a6755d94030
Author: jvoisin <julien.voisin at dustri.org>
Date: Sat Dec 19 20:17:30 2015 +0100
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"
---
libmat/office.py | 2 ++
1 file changed, 2 insertions(+)
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
try:
import cairo
+ import gi
+ gi.require_version('Poppler', '0.18')
from gi.repository import Poppler
except ImportError:
logging.info('office.py loaded without PDF support')
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-privacy/packages/mat.git
More information about the Pkg-privacy-commits
mailing list