After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 654001 - pygi-convert doesn't handle the import of pygtk
pygi-convert doesn't handle the import of pygtk
Status: RESOLVED FIXED
Product: pygobject
Classification: Bindings
Component: introspection
Git master
Other All
: Normal normal
: ---
Assigned To: Nobody's working on this now (help wanted and appreciated)
Python bindings maintainers
Depends on:
Blocks:
 
 
Reported: 2011-07-05 11:25 UTC by Timo Vanwynsberghe
Modified: 2011-08-15 17:02 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Handle the import of pygtk (981 bytes, patch)
2011-07-05 11:26 UTC, Timo Vanwynsberghe
committed Details | Review

Description Timo Vanwynsberghe 2011-07-05 11:25:50 UTC
The pygi-convert.sh script doesn't remove/edit the import of pygtk.

In the attached patch, the following cases will be handled:
- import pygtk
- pygtk.require('2.0')
- import pygtk; pygtk.require('2.0')
+ import gi
+ gi.require_version('Gtk', '3.0')
+ import gi; gi.require_version('Gtk', '3.0')
Comment 1 Timo Vanwynsberghe 2011-07-05 11:26:40 UTC
Created attachment 191304 [details] [review]
Handle the import of pygtk
Comment 2 Sebastian Pölsterl 2011-08-15 17:02:24 UTC
Thanks for the patch, I just committed it to master.