diff options
author | Dan Sully <daniel-github@electricrain.com> | 2017-01-17 09:54:49 -0500 |
---|---|---|
committer | Paul Kehrer <paul.l.kehrer@gmail.com> | 2017-01-17 22:54:49 +0800 |
commit | aa396c0805aced49d5502fafa20f304a23e369a7 (patch) | |
tree | e29ba2406b25087f2960836dc4ee5bb8d22e6c66 /src | |
parent | d74ba3298ddd4d3558224af85768e28f4c7f8d0d (diff) | |
download | cryptography-aa396c0805aced49d5502fafa20f304a23e369a7.tar.gz cryptography-aa396c0805aced49d5502fafa20f304a23e369a7.tar.bz2 cryptography-aa396c0805aced49d5502fafa20f304a23e369a7.zip |
Move pkg_resources import location. (#3347)
Diffstat (limited to 'src')
-rw-r--r-- | src/cryptography/hazmat/backends/__init__.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/cryptography/hazmat/backends/__init__.py b/src/cryptography/hazmat/backends/__init__.py index 161a1879..c0ba26c8 100644 --- a/src/cryptography/hazmat/backends/__init__.py +++ b/src/cryptography/hazmat/backends/__init__.py @@ -4,8 +4,6 @@ from __future__ import absolute_import, division, print_function -import pkg_resources - from cryptography.hazmat.backends.multibackend import MultiBackend @@ -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 |