aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/python/protobuf/py3/patches/fix-deprecated-import.patch
blob: d6743ec1ebac3c786d3e354d6d1594c85ba71956 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
diff --git a/python/google/__init__.py b/python/google/__init__.py
index 5585614..69e3be5 100644
--- a/python/google/__init__.py
+++ b/python/google/__init__.py
@@ -1,4 +1 @@
-try:
-  __import__('pkg_resources').declare_namespace(__name__)
-except ImportError:
-  __path__ = __import__('pkgutil').extend_path(__path__, __name__)
+__path__ = __import__('pkgutil').extend_path(__path__, __name__)