Files
Ashesh Vidyut 28e36d4b37 [dep] Upgrade Protobuf Version 31.1 (#39916)
Fixes - https://github.com/grpc/grpc/issues/39836 and https://github.com/grpc/grpc/issues/39912

## Description

Upgrade Protobuf Version to `31.1`.

## Testing

CI

Closes #39916

PiperOrigin-RevId: 775972589
2025-06-25 21:53:01 -07:00

15 lines
485 B
Diff

diff --git a/python/google/protobuf/__init__.py b/python/google/protobuf/__init__.py
index 45a6c20c5..c28dd8852 100755
--- a/python/google/protobuf/__init__.py
+++ b/python/google/protobuf/__init__.py
@@ -8,3 +8,9 @@
# Copyright 2007 Google Inc. All Rights Reserved.
__version__ = '6.31.1'
+
+if __name__ != '__main__':
+ try:
+ __import__('pkg_resources').declare_namespace(__name__)
+ except ImportError:
+ __path__ = __import__('pkgutil').extend_path(__path__, __name__)