aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/cryptography/hazmat/primitives/asymmetric/rsa.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/cryptography/hazmat/primitives/asymmetric/rsa.py b/src/cryptography/hazmat/primitives/asymmetric/rsa.py
index 3157aed4..27db671a 100644
--- a/src/cryptography/hazmat/primitives/asymmetric/rsa.py
+++ b/src/cryptography/hazmat/primitives/asymmetric/rsa.py
@@ -5,7 +5,11 @@
from __future__ import absolute_import, division, print_function
import abc
-from fractions import gcd
+try:
+ # Only available in math in 3.5+
+ from math import gcd
+except ImportError:
+ from fractions import gcd
import six