Actually use isinstance() to compare.
Authored by: jruigrok 2008-07-24
Parent: [r7384]
Child: [r7386]