GNOME Bugzilla – Bug 573753
DeprecationWarning under python 2.6
Last modified: 2009-04-14 20:27:54 UTC
Please describe the problem: Hi, Under python2.6 I get /usr/share/pygobject/2.0/codegen/definitions.py:42: DeprecationWarning: object.__init__() takes no parameters str.__init__(self, type_name) The attached patch should fix this. Thanks, James Steps to reproduce: Actual results: Expected results: Does this happen every time? Other information:
Created attachment 129848 [details] [review] Patch to not pass type_name to str.__init__()
Checked to work fine with 2.3 and up, so I committed this. Looks like string gets initialized in __new__ already. Sending ChangeLog Sending codegen/definitions.py Transmitting file data .. Committed revision 1063.