From efb832744466548ea6f86fa027ffe702baa0d9a0 Mon Sep 17 00:00:00 2001 From: Alex Gaynor Date: Sat, 10 Sep 2011 17:38:58 +0000 Subject: Fixed #16808, removed some dead code from teh ORM. Thanks to aaugustin for the patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16782 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- django/db/backends/util.py | 8 -------- 1 file changed, 8 deletions(-) (limited to 'django') diff --git a/django/db/backends/util.py b/django/db/backends/util.py index 0766f87787..9d2d379132 100644 --- a/django/db/backends/util.py +++ b/django/db/backends/util.py @@ -102,11 +102,6 @@ def typecast_timestamp(s): # does NOT store time zone information return datetime.datetime(int(dates[0]), int(dates[1]), int(dates[2]), int(times[0]), int(times[1]), int(seconds), int((microseconds + '000000')[:6])) -def typecast_boolean(s): - if s is None: return None - if not s: return False - return str(s)[0].lower() == 't' - def typecast_decimal(s): if s is None or s == '': return None @@ -116,9 +111,6 @@ def typecast_decimal(s): # Converters from Python to database (string) # ############################################### -def rev_typecast_boolean(obj, d): - return obj and '1' or '0' - def rev_typecast_decimal(d): if d is None: return None -- cgit v1.3