summaryrefslogtreecommitdiff
path: root/django/db
diff options
context:
space:
mode:
authorRamiro Morales <cramm0@gmail.com>2011-06-10 18:43:29 +0000
committerRamiro Morales <cramm0@gmail.com>2011-06-10 18:43:29 +0000
commitc43d15b3b329c0dcd2bfeda9b647641f1dcfeaf6 (patch)
tree55726d159a3dfac266a784bd18b8abe83e52965f /django/db
parent0e03a504bf28c727283bcabbff0f4dc63feaf573 (diff)
More removal of poorly legible constructs to workaround Python 2.4 shortcomings.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@16363 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'django/db')
-rw-r--r--django/db/backends/oracle/base.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/django/db/backends/oracle/base.py b/django/db/backends/oracle/base.py
index c4642cafd6..42de0dd07b 100644
--- a/django/db/backends/oracle/base.py
+++ b/django/db/backends/oracle/base.py
@@ -6,9 +6,8 @@ Requires cx_Oracle: http://cx-oracle.sourceforge.net/
import datetime
-import sys
-import time
from decimal import Decimal
+import sys
def _setup_environment(environ):
@@ -341,7 +340,7 @@ WHEN (new.%(col_name)s IS NULL)
return None
if isinstance(value, basestring):
- return datetime.datetime(*(time.strptime(value, '%H:%M:%S')[:6]))
+ return datetime.datetime.strptime(value, '%H:%M:%S')
# Oracle doesn't support tz-aware datetimes
if value.tzinfo is not None: