[Image-SIG] [PIL 1.1.6] bug with python 2.51 but not with python 2.44

Fredrik Lundh fredrik at pythonware.com
Thu Dec 27 12:52:37 CET 2007


Fredrik Lundh wrote:

> if you cannot make this work, try changing
> 
>          if not isinstance(filter, Filter):
>              filter = filter()
> 
> to
> 
> 	if type(filter) is type(Filter):
> 	    filter = filter()
> 
> in Image.py.

or, better:

  	if callable(filter):
  	    filter = filter()



More information about the Image-SIG mailing list