[Pkg-privacy-commits] [onioncircuits] 08/17: Specify required version of GIRs
Sascha Steinbiss
sascha at steinbiss.name
Fri Feb 19 00:32:09 UTC 2016
This is an automated email from the git hooks/post-receive script.
sascha-guest pushed a commit to branch master
in repository onioncircuits.
commit ee6f59dae4ead2917910d911245bacbeb2c83549
Author: Alan <alan at boum.org>
Date: Thu Feb 18 20:11:58 2016 +0000
Specify required version of GIRs
This prevents a PyGIWarning on startup
---
onioncircuits | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/onioncircuits b/onioncircuits
index d3cd746..2974749 100755
--- a/onioncircuits
+++ b/onioncircuits
@@ -28,10 +28,14 @@ try:
except ImportError:
pycountry = None
+import gi
import stem
import stem.connection
import stem.control
+gi.require_version('GLib', '2.0')
+gi.require_version('GObject', '2.0')
+gi.require_version('Gtk', '3.0')
from gi.repository import (GLib,
GObject,
Gtk)
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-privacy/packages/onioncircuits.git
More information about the Pkg-privacy-commits
mailing list