Update docs to use py3k #458

Merged
clayadavis merged 2 commits from docs_py3k into master 2017-10-06 12:27:24 -07:00
Showing only changes of commit c086449818 - Show all commits

View file

@ -62,6 +62,11 @@ with a status update.
# Assume you are working with a JPEG
from PIL import Image
try:
# Python 3
from io import StringIO
except ImportError:
# Python 2
from StringIO import StringIO
photo = Image.open('/path/to/file/image.jpg')