From 8b12c8f1c2048a9ef6f19b66823bf6053efff565 Mon Sep 17 00:00:00 2001 From: Jason Kirtland Date: Tue, 15 Jul 2008 19:40:08 +0000 Subject: - Removed 2.3 Decimal compat --- lib/sqlalchemy/util.py | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'lib/sqlalchemy/util.py') 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 -- cgit v1.2.1