2005-01-10 | Paul Boddie | raw files shortlog changelog graph | Added object as a superclass for each wrapper class, thus enabling new-style behaviour for things like Tkinter which use old-style classes. | |
tools/wrap.py (file) |
1.1 --- a/tools/wrap.py Mon Jan 10 00:19:39 2005 +0100 1.2 +++ b/tools/wrap.py Mon Jan 10 01:04:50 2005 +0100 1.3 @@ -36,7 +36,7 @@ 1.4 1.5 full_name = c.this_class.get_python_name() 1.6 class_name = full_name.split(".")[-1] 1.7 - f.write("class %s(%s.%s):\n" % (class_name, package, class_name)) 1.8 + f.write("class %s(%s.%s, object):\n" % (class_name, package, class_name)) 1.9 1.10 # Process methods in the class, writing wrapper code. 1.11