Ticket #7658: tempfile.2.diff
File tempfile.2.diff, 1.0 KB (added by , 16 years ago) |
---|
-
django/core/files/uploadedfile.py
3 3 """ 4 4 5 5 import os 6 import tempfile7 6 import warnings 8 7 try: 9 8 from cStringIO import StringIO … … 12 11 13 12 from django.conf import settings 14 13 14 from django.core.files import temp as tempfile 15 15 16 __all__ = ('UploadedFile', 'TemporaryUploadedFile', 'InMemoryUploadedFile', 'SimpleUploadedFile') 16 17 17 18 # Because we fooled around with it a bunch, UploadedFile has a bunch -
tests/regressiontests/file_uploads/tests.py
1 1 import os 2 2 import sha 3 importtempfile3 from django.core.files import temp as tempfile 4 4 from django.test import TestCase, client 5 5 from django.utils import simplejson 6 6