summaryrefslogtreecommitdiffstats
path: root/codegen/definitions.py
diff options
context:
space:
mode:
authorJames Westby <jw+debian@jameswestby.net>2009-04-14 20:27:01 +0000
committerPaul Pogonyshev <paulp@src.gnome.org>2009-04-14 20:27:01 +0000
commit37af0256edc5d34efb8a7cf8163fc9b45909d048 (patch)
tree579e14c65c3fcb74edd95ddff28dc76a339fdb3e /codegen/definitions.py
parent8e15bbe1305903561ed933651cb0dc8469c72261 (diff)
downloadpygobject-37af0256edc5d34efb8a7cf8163fc9b45909d048.tar.gz
pygobject-37af0256edc5d34efb8a7cf8163fc9b45909d048.tar.xz
pygobject-37af0256edc5d34efb8a7cf8163fc9b45909d048.zip
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
Diffstat (limited to 'codegen/definitions.py')
-rw-r--r--codegen/definitions.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/codegen/definitions.py b/codegen/definitions.py
index 6249d78..88b6cdb 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