~ubuntu-branches/ubuntu/trusty/python-imaging/trusty

« back to all changes in this revision

Viewing changes to PIL/IcnsImagePlugin.py

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2009-11-20 19:22:59 UTC
  • mfrom: (2.1.6 squeeze)
  • Revision ID: james.westby@ubuntu.com-20091120192259-cmnfui5tv2jtq4xu
Tags: 1.1.7-1
New upstream version.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#
2
2
# The Python Imaging Library.
3
 
# $Id: ImImagePlugin.py 2134 2004-10-06 08:55:20Z fredrik $
 
3
# $Id$
4
4
#
5
5
# Mac OS X icns file decoder, based on icns.py by Bob Ippolito.
6
6
#
65
65
                    break
66
66
            if bytesleft != 0:
67
67
                raise SyntaxError(
68
 
                    "Error reading %r channel [%r]" % (channel, bytesleft)
 
68
                    "Error reading channel [%r left]" % bytesleft
69
69
                    )
70
70
            band = Image.frombuffer(
71
71
                "L", size, string.join(data, ""), "raw", "L", 0, 1