Chromium Code Reviews| Index: third_party/protobuf/python/google/__init__.py |
| diff --git a/third_party/protobuf/python/google/__init__.py b/third_party/protobuf/python/google/__init__.py |
| index de40ea7ca058e07a399acf61529d418c07eeee61..55856141229970da017c2ddd56711e7268739fdd 100755 |
| --- a/third_party/protobuf/python/google/__init__.py |
| +++ b/third_party/protobuf/python/google/__init__.py |
| @@ -1 +1,4 @@ |
| -__import__('pkg_resources').declare_namespace(__name__) |
| +try: |
| + __import__('pkg_resources').declare_namespace(__name__) |
| +except ImportError: |
| + __path__ = __import__('pkgutil').extend_path(__path__, __name__) |