Tres Seaver 10 年之前
父节点
当前提交
d25e6686d9
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      python/google/protobuf/internal/cpp_message.py

+ 1 - 1
python/google/protobuf/internal/cpp_message.py

@@ -404,7 +404,7 @@ def _AddDescriptors(message_descriptor, dictionary):
     dictionary['__descriptors'][field.name] = GetFieldDescriptor(
         field.full_name)
 
-  dictionary['__slots__'] = list(dictionary['__descriptors'].keys())) + [
+  dictionary['__slots__'] = list(dictionary['__descriptors'].keys()) + [
       '_cmsg', '_owner', '_composite_fields', 'Extensions', '_HACK_REFCOUNTS']