~ubuntu-branches/ubuntu/maverick/pygame/maverick

« back to all changes in this revision

Viewing changes to lib/cursors.py

  • Committer: Bazaar Package Importer
  • Author(s): Sebastien Bacher
  • Date: 2010-01-14 17:02:11 UTC
  • mfrom: (1.3.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20100114170211-21eop2ja7mr9vdcr
Tags: 1.9.1release-0ubuntu1
* New upstream version (lp: #433304)
* debian/control:
  - build-depends on libportmidi-dev

Show diffs side-by-side

added added

removed removed

Lines of Context:
207
207
   #first check for consistent lengths
208
208
   size = len(strings[0]), len(strings)
209
209
   if size[0] % 8 or size[1] % 8:
210
 
       raise ValueError, "cursor string sizes must be divisible by 8 "+`size`
 
210
       raise ValueError("cursor string sizes must be divisible by 8 %s" %
 
211
                        size)
211
212
   for s in strings[1:]:
212
213
       if len(s) != size[0]:
213
 
           raise ValueError, "Cursor strings are inconsistent lengths"
 
214
           raise ValueError("Cursor strings are inconsistent lengths")
214
215
 
215
216
   #create the data arrays.
216
217
   #this could stand a little optimizing