Skip to content

Commit

Permalink
Move pkg_resources import location. (#3347)
Browse files Browse the repository at this point in the history
  • Loading branch information
Dan Sully authored and reaperhulk committed Jan 17, 2017
1 parent d74ba32 commit aa396c0
Showing 1 changed file with 4 additions and 2 deletions.
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

0 comments on commit aa396c0

Please sign in to comment.