Added comment that getdata is legacy

This commit is contained in:
Andrew Murray 2017-02-25 13:50:49 +11:00 committed by wiredfool
parent 9a36a51916
commit ab7e07c54d

View File

@ -719,10 +719,14 @@ def _write_frame_data(fp, im_frame, offset, params):
# To specify duration, add the time in milliseconds to getdata(),
# e.g. getdata(im_frame, duration=1000)
def getdata(im, offset=(0, 0), **params):
"""Return a list of strings representing this image.
The first string is a local image header, the rest contains
encoded image data."""
"""
Legacy Method
Return a list of strings representing this image.
The first string is a local image header, the rest contains
encoded image data.
"""
class Collector(object):
data = []