~ubuntu-branches/ubuntu/saucy/python-imaging/saucy-proposed

« back to all changes in this revision

Viewing changes to PIL/ImageFileIO.py

  • Committer: Package Import Robot
  • Author(s): Matthias Klose
  • Date: 2013-01-31 20:49:20 UTC
  • mfrom: (27.1.1 raring-proposed)
  • Revision ID: package-import@ubuntu.com-20130131204920-b5zshy6vgfvdionl
Tags: 1.1.7+1.7.8-1ubuntu1
Rewrite build dependencies to allow cross builds.

Show diffs side-by-side

added added

removed removed

Lines of Context:
12
12
# See the README file for information on usage and redistribution.
13
13
#
14
14
 
15
 
from StringIO import StringIO
 
15
from io import BytesIO
16
16
 
17
17
##
18
18
# The <b>ImageFileIO</b> module can be used to read an image from a
23
23
#
24
24
# @see ImageFile#Parser
25
25
 
26
 
class ImageFileIO(StringIO):
 
26
class ImageFileIO(BytesIO):
27
27
 
28
28
    ##
29
29
    # Adds buffering to a stream file object, in order to
36
36
 
37
37
    def __init__(self, fp):
38
38
        data = fp.read()
39
 
        StringIO.__init__(self, data)
 
39
        BytesIO.__init__(self, data)