2
# The Python Imaging Library.
5
# kludge to get basic ImageFileIO functionality
8
# 1998-08-06 fl Recreated
10
# Copyright (c) Secret Labs AB 1998-2002.
12
# See the README file for information on usage and redistribution.
15
from StringIO import StringIO
18
# The <b>ImageFileIO</b> module can be used to read an image from a
19
# socket, or any other stream device.
21
# This module is deprecated. New code should use the <b>Parser</b>
22
# class in the <a href="imagefile">ImageFile</a> module instead.
24
# @see ImageFile#Parser
26
class ImageFileIO(StringIO):
29
# Adds buffering to a stream file object, in order to
30
# provide <b>seek</b> and <b>tell</b> methods required
31
# by the <b>Image.open</b> method. The stream object must
32
# implement <b>read</b> and <b>close</b> methods.
34
# @param fp Stream file handle.
37
def __init__(self, fp):
39
StringIO.__init__(self, data)