summaryrefslogtreecommitdiff
path: root/factory
diff options
context:
space:
mode:
Diffstat (limited to 'factory')
-rw-r--r--factory/compat.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/factory/compat.py b/factory/compat.py
index 1e0b2d2..7747b1a 100644
--- a/factory/compat.py
+++ b/factory/compat.py
@@ -42,7 +42,7 @@ else: # pragma: no cover
from io import BytesIO
-if sys.version_info[:1] == (2, 6): # pragma: no cover
+if sys.version_info[:2] == (2, 6): # pragma: no cover
def float_to_decimal(fl):
return decimal.Decimal(str(fl))
else: # pragma: no cover