Przeglądaj źródła

Fix call to superclass.__init__() to work on newer versions of Python.

kenton@google.com 17 lat temu
rodzic
commit
eb241fadf2
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      python/google/protobuf/reflection.py

+ 1 - 1
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.