Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move pkg_resources import location. #3347

Merged
merged 1 commit into from
Jan 17, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions src/cryptography/hazmat/backends/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@

from __future__ import absolute_import, division, print_function

import pkg_resources

from cryptography.hazmat.backends.multibackend import MultiBackend


Expand All @@ -16,6 +14,10 @@ def _available_backends():
global _available_backends_list

if _available_backends_list is None:
# Import here to reduce import time.
# pkg_resources takes about 100ms to load.
import pkg_resources

entry_point_backends = [
# DeprecatedIn16
# setuptools 11.3 deprecated support for the require parameter to
Expand Down