[Python-modules-commits] [sphinx] 01/01: jstest.py: Add gi.require_version() calls to fix warnings from PyGI.

Dmitry Shachnev mitya57 at moszumanska.debian.org
Thu Jan 14 16:29:11 UTC 2016


This is an automated email from the git hooks/post-receive script.

mitya57 pushed a commit to branch master
in repository sphinx.

commit f33af7f449e5d459aece073a2b3f93c75c301491
Author: Dmitry Shachnev <mitya57 at gmail.com>
Date:   Thu Jan 14 19:29:03 2016 +0300

    jstest.py: Add gi.require_version() calls to fix warnings from PyGI.
---
 debian/changelog        | 1 +
 debian/jstest/jstest.py | 3 +++
 2 files changed, 4 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 802d44b..e4100d6 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -2,6 +2,7 @@ sphinx (1.3.4-1) UNRELEASED; urgency=medium
 
   * New upstream bugfix release.
   * Clean and ignore auto-generated files.
+  * jstest.py: Add gi.require_version() calls to fix warnings from PyGI.
 
  -- Dmitry Shachnev <mitya57 at debian.org>  Thu, 14 Jan 2016 19:01:44 +0300
 
diff --git a/debian/jstest/jstest.py b/debian/jstest/jstest.py
index 63cc02e..60cea39 100644
--- a/debian/jstest/jstest.py
+++ b/debian/jstest/jstest.py
@@ -31,7 +31,10 @@ import urllib.parse
 import urllib.request
 import re
 import unittest
+import gi
 
+gi.require_version('Gtk', '3.0')
+gi.require_version('WebKit', '3.0')
 from gi.repository import GLib, Gtk, WebKit
 
 default_time_limit = 10.0

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/sphinx.git



More information about the Python-modules-commits mailing list