Skip to content

Commit

Permalink
Remove namespace package boilerplate from google.protobuf and google.…
Browse files Browse the repository at this point in the history
…protobuf.pyext.

setup.py does not declare these packages to be namespace packages, so they shouldn't have the boilerplate.

Fixes protocolbuffers#5194.
  • Loading branch information
benjaminp committed Nov 4, 2019
1 parent f6eeb43 commit d6c4df0
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 10 deletions.
6 changes: 0 additions & 6 deletions python/google/protobuf/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,3 @@
# Copyright 2007 Google Inc. All Rights Reserved.

__version__ = '3.11.0rc0'

if __name__ != '__main__':
try:
__import__('pkg_resources').declare_namespace(__name__)
except ImportError:
__path__ = __import__('pkgutil').extend_path(__path__, __name__)
4 changes: 0 additions & 4 deletions python/google/protobuf/pyext/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +0,0 @@
try:
__import__('pkg_resources').declare_namespace(__name__)
except ImportError:
__path__ = __import__('pkgutil').extend_path(__path__, __name__)

0 comments on commit d6c4df0

Please sign in to comment.