mirror of
https://github.com/django/django.git
synced 2025-08-03 02:23:12 +00:00
Fixed #12164 -- Removed the Python 2.3 compatibility imports and workarounds. Thanks to timo and claudep for the patch.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@13094 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
7202eb8e31
commit
5211f48ae3
59 changed files with 32 additions and 3399 deletions
|
@ -1,5 +1,6 @@
|
|||
import datetime
|
||||
import unittest
|
||||
from decimal import Decimal
|
||||
|
||||
import django.test
|
||||
from django import forms
|
||||
|
@ -8,12 +9,6 @@ from django.core.exceptions import ValidationError
|
|||
|
||||
from models import Foo, Bar, Whiz, BigD, BigS, Image, BigInt, Post, NullBooleanModel, BooleanModel
|
||||
|
||||
try:
|
||||
from decimal import Decimal
|
||||
except ImportError:
|
||||
from django.utils._decimal import Decimal
|
||||
|
||||
|
||||
# If PIL available, do these tests.
|
||||
if Image:
|
||||
from imagefield import \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue