summaryrefslogtreecommitdiff
path: root/gi/__init__.py
diff options
context:
space:
mode:
authorChristoph Reiter <creiter@src.gnome.org>2015-03-02 20:58:04 +0100
committerChristoph Reiter <creiter@src.gnome.org>2015-06-02 10:03:07 +0200
commit2048dc8d1d708abce7037f96483c6d776567d6b5 (patch)
treec5f050733b3686e4f5c3b498720157077cf29ee3 /gi/__init__.py
parent7a3bb6971f22accd25e987496d377e1879f6e1ba (diff)
downloadpygobject-2048dc8d1d708abce7037f96483c6d776567d6b5.tar.gz
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
Diffstat (limited to 'gi/__init__.py')
-rw-r--r--gi/__init__.py2
1 files changed, 2 insertions, 0 deletions
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')