The version strings in line 252 of piddlePIL.py needs to be updated to work with PIL version 1.1.1. The patch follows:
diff -c -r1.3 piddlePIL.py
*** piddlePIL.py 2000/03/12 07:07:42 1.3
--- piddlePIL.py 2001/01/18 21:25:07
***************
*** 249,255 ****
# for width <= 1, just use fast line method
# This switch is not good.Must be updated when PIL
# changes it version. Argh.
! if Image.VERSION <= "1.0":
self._pen.line( (x1,y1,x2,y2) )
elif Image.VERSION <= "1.0b1":
self._pen.line( (x1,y1, x2,y2) )
--- 249,255 ----
# for width <= 1, just use fast line method
# This switch is not good.Must be updated when PIL
# changes it version. Argh.
! if Image.VERSION <= "1.1.1":
self._pen.line( (x1,y1,x2,y2) )
elif Image.VERSION <= "1.0b1":
self._pen.line( (x1,y1, x2,y2) )
***************
Logged In: YES
user_id=1971
Next action:
poll users: any reason to support older PIL?
if so, refactor older versions into separate classes.