Skip to content

Commit

Permalink
Merge pull request #707 from canassa/patch-1
Browse files Browse the repository at this point in the history
Make the examples Python 3 compatible
  • Loading branch information
sww314 committed May 22, 2019
2 parents b441b74 + d9353f8 commit 443cf95
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/backends/amazon-S3.rst
Expand Up @@ -273,7 +273,7 @@ An object without a file has limited functionality::

Saving a file enables full functionality::

>>> obj1.normal.save('django_test.txt', ContentFile('content'))
>>> obj1.normal.save('django_test.txt', ContentFile(b'content'))
>>> obj1.normal
<FieldFile: tests/django_test.txt>
>>> obj1.normal.size
Expand All @@ -294,7 +294,7 @@ Files can be read in a little at a time, if necessary::
Save another file with the same name::

>>> obj2 = MyModel()
>>> obj2.normal.save('django_test.txt', ContentFile('more content'))
>>> obj2.normal.save('django_test.txt', ContentFile(b'more content'))
>>> obj2.normal
<FieldFile: tests/django_test.txt>
>>> obj2.normal.size
Expand Down

0 comments on commit 443cf95

Please sign in to comment.