blob: 5d117f64e367fd712d71719a0b0715e276ec4e6f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
diff --git 1/third-party/nanopb/generator/nanopb_generator.a.py 2/third-party/nanopb/generator/nanopb_generator.py
index 819b993..cd8dc05 100755
--- 1/third-party/nanopb/generator/nanopb_generator.a.py
+++ 2/third-party/nanopb/generator/nanopb_generator.py
@@ -36,7 +36,7 @@ try:
import google.protobuf.text_format as text_format
import google.protobuf.descriptor_pb2 as descriptor
import google.protobuf.compiler.plugin_pb2 as plugin_pb2
- import google.protobuf.reflection as reflection
+ import google.protobuf.message_factory as message_factory
import google.protobuf.descriptor
except:
sys.stderr.write('''
@@ -1455,7 +1455,7 @@ class Message(ProtoElement):
optional_only.name += str(id(self))
desc = google.protobuf.descriptor.MakeDescriptor(optional_only)
- msg = reflection.MakeClass(desc)()
+ msg = message_factory.GetMessageClass(desc)()
for field in optional_only.field:
if field.type == FieldD.TYPE_STRING:
|