summaryrefslogtreecommitdiff
path: root/factory
diff options
context:
space:
mode:
authorRaphaël Barrois <raphael.barrois@polytechnique.org>2013-10-29 01:13:08 +0100
committerRaphaël Barrois <raphael.barrois@polytechnique.org>2013-10-29 01:13:08 +0100
commit9596417941b4596c1e266e349bb72741e5ab81dd (patch)
treeea221f5d7cedea6a8a6ae735e1f037b2b343f535 /factory
parent5c10062ce0ffb83010aba800f25f2df3f6540211 (diff)
downloadfactory-boy-9596417941b4596c1e266e349bb72741e5ab81dd.tar
factory-boy-9596417941b4596c1e266e349bb72741e5ab81dd.tar.gz
Fix compatibility wrapper for Decimal.
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