summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorStefano Karapetsas <[email protected]>2012-12-14 11:48:48 -0800
committerStefano Karapetsas <[email protected]>2012-12-14 11:48:48 -0800
commitea58853d82d90357a36832ca1c62cefbfadc6154 (patch)
tree87865e39858e031dd3c32bb12f45cf8862f8bca1 /python
parent07ff67922a68f69f64e89c8997add9976ed419d2 (diff)
parent032377291f83cba3d0ab0eed7665cb2f5df0d2bd (diff)
downloadlibmateweather-ea58853d82d90357a36832ca1c62cefbfadc6154.tar.bz2
libmateweather-ea58853d82d90357a36832ca1c62cefbfadc6154.tar.xz
Merge pull request #4 from sbalneav/master
Fix deprecations
Diffstat (limited to 'python')
-rw-r--r--python/mateweathermodule.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/python/mateweathermodule.c b/python/mateweathermodule.c
index 9427849..63691f8 100644
--- a/python/mateweathermodule.c
+++ b/python/mateweathermodule.c
@@ -36,7 +36,9 @@ initmateweather(void)
PyObject *m, *d;
init_pygobject ();
+#if !GLIB_CHECK_VERSION (2, 32, 0)
g_thread_init (NULL);
+#endif
m = Py_InitModule ("mateweather", pymateweather_functions);
d = PyModule_GetDict (m);