diff options
author | James Westby <jw+debian@jameswestby.net> | 2009-04-14 20:27:01 +0000 |
---|---|---|
committer | Paul Pogonyshev <paulp@src.gnome.org> | 2009-04-14 20:27:01 +0000 |
commit | 37af0256edc5d34efb8a7cf8163fc9b45909d048 (patch) | |
tree | 579e14c65c3fcb74edd95ddff28dc76a339fdb3e | |
parent | 8e15bbe1305903561ed933651cb0dc8469c72261 (diff) | |
download | pygobject-37af0256edc5d34efb8a7cf8163fc9b45909d048.tar.gz |
Bug 573753 – DeprecationWarning under python 2.6
2009-04-14 James Westby <jw+debian@jameswestby.net>
Bug 573753 – DeprecationWarning under python 2.6
* codegen/definitions.py (ReturnType.__init__): Don't pass
'type_name' argument to super __init__.
svn path=/trunk/; revision=1063
-rw-r--r-- | ChangeLog | 7 | ||||
-rw-r--r-- | codegen/definitions.py | 2 |
2 files changed, 8 insertions, 1 deletions
@@ -1,3 +1,10 @@ +2009-04-14 James Westby <jw+debian@jameswestby.net> + + Bug 573753 – DeprecationWarning under python 2.6 + + * codegen/definitions.py (ReturnType.__init__): Don't pass + 'type_name' argument to super __init__. + 2009-04-14 Krzesimir Nowak <krnowak@svn.gnome.org> Bug 576566 – several scripts from codegen directory are not diff --git a/codegen/definitions.py b/codegen/definitions.py index 6249d789..88b6cdbe 100644 --- a/codegen/definitions.py +++ b/codegen/definitions.py @@ -39,7 +39,7 @@ class ReturnType(str): def __new__(cls, *args, **kwds): return str.__new__(cls, *args[:1]) def __init__(self, type_name, optional=False): - str.__init__(self, type_name) + str.__init__(self) self.optional = optional # Parameter for property based constructors |