From 2048dc8d1d708abce7037f96483c6d776567d6b5 Mon Sep 17 00:00:00 2001 From: Christoph Reiter Date: Mon, 2 Mar 2015 20:58:04 +0100 Subject: Add gi.PyGIWarning and use it instead of PyGIDeprecationWarning in case the version to import wasn't specified. This makes the warning visible by default. See commit ef3bff4e570363e4f383d4cdae9cecd4073b03d8 for more info on the warning. https://bugzilla.gnome.org/show_bug.cgi?id=727379 --- gi/__init__.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'gi/__init__.py') diff --git a/gi/__init__.py b/gi/__init__.py index fe4abcfb..caad5694 100644 --- a/gi/__init__.py +++ b/gi/__init__.py @@ -44,9 +44,11 @@ from ._gi import _gobject from ._gi import _API from ._gi import Repository from ._gi import PyGIDeprecationWarning +from ._gi import PyGIWarning _API = _API # pyflakes PyGIDeprecationWarning = PyGIDeprecationWarning +PyGIWarning = PyGIWarning _versions = {} _overridesdir = os.path.join(os.path.dirname(__file__), 'overrides') -- cgit v1.2.1