Use isinstance() in preference to comparison of type by is.
1 file changed