diff options
| author | Christoph Reiter <reiter.christoph@gmail.com> | 2018-04-22 21:28:08 +0200 |
|---|---|---|
| committer | Christoph Reiter <reiter.christoph@gmail.com> | 2018-04-22 21:47:34 +0200 |
| commit | a2c8c533a791375a8ba337e6200672bd04914c08 (patch) | |
| tree | 73c391c820da7b18027ec124b314a8cdd1ac22d6 /gi/pygi-boxed.c | |
| parent | 2aed3ec87bf48c6043965c82ae1a85e2fb583ff9 (diff) | |
| download | pygobject-a2c8c533a791375a8ba337e6200672bd04914c08.tar.gz | |
pypy: pass a warning subclass to PyErr_Warn and not an exception, pypy does't support that.
TypeError is wrong there anyway.
Diffstat (limited to 'gi/pygi-boxed.c')
| -rw-r--r-- | gi/pygi-boxed.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gi/pygi-boxed.c b/gi/pygi-boxed.c index ce3d7487..d4823263 100644 --- a/gi/pygi-boxed.c +++ b/gi/pygi-boxed.c @@ -140,7 +140,7 @@ boxed_init (PyObject *self, if (!PyArg_ParseTupleAndKeywords (args, kwargs, "", kwlist)) { PyErr_Clear (); - PyErr_Warn (PyExc_TypeError, + PyErr_Warn (PyExc_DeprecationWarning, "Passing arguments to gi.types.Boxed.__init__() is deprecated. " "All arguments passed will be ignored."); } |
