Permalink
Browse files

Fixed #6767: corrected a 2.3 compatibility issue in [9750]. Thanks to…

… tlow.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@9761 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent f212b24 commit 1c1425130d04d0045b299beffce3363b819cf393 @ikelly ikelly committed Jan 16, 2009
Showing with 4 additions and 1 deletion.
  1. +4 −1 django/db/backends/oracle/base.py
View
5 django/db/backends/oracle/base.py
@@ -7,7 +7,10 @@
import os
import datetime
import time
-from decimal import Decimal
+try:
+ from decimal import Decimal
+except ImportError:
+ from django.utils._decimal import Decimal
# Oracle takes client-side character set encoding from the environment.
os.environ['NLS_LANG'] = '.UTF8'

0 comments on commit 1c14251

Please sign in to comment.