Corrected use of cbook.warn_deprecated()
Correct use of obj_type argument in cbook.warn_deprecated
Merge pull request #2371 from ianthomas23/warn_deprecated_correction

Corrections to cbook.warn_deprecated calls().