diff options
author | Raphaël Barrois <raphael.barrois@polytechnique.org> | 2013-10-29 01:13:08 +0100 |
---|---|---|
committer | Raphaël Barrois <raphael.barrois@polytechnique.org> | 2013-10-29 01:13:08 +0100 |
commit | 9596417941b4596c1e266e349bb72741e5ab81dd (patch) | |
tree | ea221f5d7cedea6a8a6ae735e1f037b2b343f535 | |
parent | 5c10062ce0ffb83010aba800f25f2df3f6540211 (diff) | |
download | factory-boy-9596417941b4596c1e266e349bb72741e5ab81dd.tar factory-boy-9596417941b4596c1e266e349bb72741e5ab81dd.tar.gz |
Fix compatibility wrapper for Decimal.
-rw-r--r-- | factory/compat.py | 2 |
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 |