diff options
author | Jason Kirtland <jek@discorporate.us> | 2008-07-15 19:40:08 +0000 |
---|---|---|
committer | Jason Kirtland <jek@discorporate.us> | 2008-07-15 19:40:08 +0000 |
commit | 8b12c8f1c2048a9ef6f19b66823bf6053efff565 (patch) | |
tree | 528de821fb080eaee04b077e25e2746150d2658f /lib/sqlalchemy/util.py | |
parent | 1d37472fdd1e4091fe2d158a21b27043fc8626f9 (diff) | |
download | sqlalchemy-8b12c8f1c2048a9ef6f19b66823bf6053efff565.tar.gz |
- Removed 2.3 Decimal compat
Diffstat (limited to 'lib/sqlalchemy/util.py')
-rw-r--r-- | lib/sqlalchemy/util.py | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/lib/sqlalchemy/util.py b/lib/sqlalchemy/util.py index ee2840cf5..9175e78f2 100644 --- a/lib/sqlalchemy/util.py +++ b/lib/sqlalchemy/util.py @@ -27,20 +27,6 @@ try: except ImportError: import pickle -try: - # Try the standard decimal for > 2.3 or the compatibility module - # for 2.3, if installed. - from decimal import Decimal - decimal_type = Decimal -except ImportError: - def Decimal(arg): - if Decimal.warn: - warn("True Decimal types not available on this Python, " - "falling back to floats.") - Decimal.warn = False - return float(arg) - Decimal.warn = True - decimal_type = float try: from operator import attrgetter |