Codebase list sugar-toolkit-gtk3 / 2265623
Fix Python GI API version warning in datastore When the datastore process begins on Fedora 26, the import of mime.py causes a version warning to the system journal. ``` Jun 09 10:28:01 localhost-live org.laptop.sugar.DataStore[2197]: /usr/lib/python2.7/site-packages/sugar3/mime.py:29: PyGIWarning: GdkPixbuf was imported without specifying a version first. Use gi.require_version('GdkPixbuf', '2.0') before import to ensure that the right version gets loaded. Jun 09 10:28:01 localhost-live org.laptop.sugar.DataStore[2197]: from gi.repository import GdkPixbuf ``` Accidental finding on #4989. James Cameron 6 years ago
1 changed file(s) with 3 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
2424 import logging
2525 import gettext
2626
27 import gi
28 gi.require_version('GdkPixbuf', '2.0')
29
2730 from gi.repository import GLib
2831 from gi.repository import GdkPixbuf
2932 from gi.repository import Gio