From eb241fadf22bd9cafa3c2b2e91a914a12df07993 Mon Sep 17 00:00:00 2001 From: "kenton@google.com" Date: Tue, 2 Dec 2008 02:33:13 +0000 Subject: Fix call to superclass.__init__() to work on newer versions of Python. --- python/google/protobuf/reflection.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'python/google') diff --git a/python/google/protobuf/reflection.py b/python/google/protobuf/reflection.py index c35742ce..9ba752e4 100755 --- a/python/google/protobuf/reflection.py +++ b/python/google/protobuf/reflection.py @@ -153,7 +153,7 @@ class GeneratedProtocolMessageType(type): _AddMessageMethods(descriptor, cls) _AddPrivateHelperMethods(cls) superclass = super(GeneratedProtocolMessageType, cls) - superclass.__init__(cls, name, bases, dictionary) + superclass.__init__(name, bases, dictionary) # Stateless helpers for GeneratedProtocolMessageType below. -- cgit v1.2.3