We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 638c8f6 commit e6ef3c7Copy full SHA for e6ef3c7
1 file changed
proto/message.py
@@ -37,8 +37,10 @@
37
PROTOBUF_VERSION = google.protobuf.__version__
38
39
# extract the major version code
40
-_separator_idx = PROTOBUF_VERSION.find('.')
41
-_PROTOBUF_MAJOR_VERSION = PROTOBUF_VERSION[:_separator_idx] if _separator_idx != -1 else PROTOBUF_VERSION
+_separator_idx = PROTOBUF_VERSION.find(".")
+_PROTOBUF_MAJOR_VERSION = (
42
+ PROTOBUF_VERSION[:_separator_idx] if _separator_idx != -1 else PROTOBUF_VERSION
43
+)
44
45
_upb = has_upb() # Important to cache result here.
46
0 commit comments