diff options
author | Claude Paroz <claude@2xlibre.net> | 2012-06-07 18:08:47 +0200 |
---|---|---|
committer | Claude Paroz <claude@2xlibre.net> | 2012-06-07 18:08:47 +0200 |
commit | 4a103086d5c67fa4fcc53c106c9fdf644c742dd8 (patch) | |
tree | 3df00600c27f6369f7561c3b8ddf2f97d2d341d9 /django/core/files/uploadhandler.py | |
parent | 706fd9adc0b6587c7f96a834c757708e64fcf615 (diff) | |
download | django-4a103086d5c67fa4fcc53c106c9fdf644c742dd8.tar.gz |
Fixed #18269 -- Applied unicode_literals for Python 3 compatibility.
Thanks Vinay Sajip for the support of his django3 branch and
Jannis Leidel for the review.
Diffstat (limited to 'django/core/files/uploadhandler.py')
-rw-r--r-- | django/core/files/uploadhandler.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/django/core/files/uploadhandler.py b/django/core/files/uploadhandler.py index 88f78904bb..68d540e595 100644 --- a/django/core/files/uploadhandler.py +++ b/django/core/files/uploadhandler.py @@ -2,6 +2,8 @@ Base file upload handler classes, and the built-in concrete subclasses """ +from __future__ import unicode_literals + from io import BytesIO from django.conf import settings @@ -33,9 +35,9 @@ class StopUpload(UploadFileException): def __unicode__(self): if self.connection_reset: - return u'StopUpload: Halt current upload.' + return 'StopUpload: Halt current upload.' else: - return u'StopUpload: Consume request data, then halt.' + return 'StopUpload: Consume request data, then halt.' class SkipFile(UploadFileException): """ |