From 37af0256edc5d34efb8a7cf8163fc9b45909d048 Mon Sep 17 00:00:00 2001 From: James Westby Date: Tue, 14 Apr 2009 20:27:01 +0000 Subject: Bug 573753 – DeprecationWarning under python 2.6 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 2009-04-14 James Westby 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 --- codegen/definitions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'codegen/definitions.py') 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 -- cgit