Просмотр исходного кода

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

kenton@google.com 17 лет назад
Родитель
Сommit
eb241fadf2
1 измененных файлов с 1 добавлено и 1 удалено
  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.