Skip to content

Commit 87165ff

Browse files
committed
feat: drop namespacing hooks
pkg_resources is deprecated. Since Python 3.3 there is native namespacing. But this requires that no __init__.py exists, therefore not usable here. in case we need it, e.g. to support httoop-http2 we can still use `__path___ = __import__('pkgutil').extend_path(__path__, __name__)`.
1 parent 98ef9dd commit 87165ff

1 file changed

Lines changed: 0 additions & 5 deletions

File tree

httoop/__init__.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,3 @@
5151
'__version__', 'ServerProtocol', 'UserAgentHeader', 'ServerHeader',
5252
'cache', 'ComposedRequest', 'ComposedResponse',
5353
]
54-
55-
try:
56-
__import__('pkg_resources').declare_namespace(__name__)
57-
except ImportError: # pragma: no cover
58-
__path___ = __import__('pkgutil').extend_path(__path__, __name__)

0 commit comments

Comments
 (0)