mirror of
https://github.com/django/django.git
synced 2025-08-04 19:08:28 +00:00
Marked bytestrings with b prefix. Refs #18269
This is a preparation for unicode literals general usage in Django (Python 3 compatibility).
This commit is contained in:
parent
822d6d6dab
commit
38408f8007
44 changed files with 296 additions and 295 deletions
|
@ -96,7 +96,7 @@ The ``ContentFile`` Class
|
|||
|
||||
from django.core.files.base import ContentFile
|
||||
|
||||
f1 = ContentFile("my string content")
|
||||
f1 = ContentFile(b"my string content")
|
||||
f2 = ContentFile(u"my unicode content encoded as UTF-8".encode('UTF-8'))
|
||||
|
||||
.. currentmodule:: django.core.files.images
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue