Instead of comparing with str or types.StringTypes, use basestring instead -- it's newer and easier to use, being a builtin.
GH commit from Jiri Barton.
Originally submitted by Jeff Forcier (bitprophet) on 2011-07-07 at 03:35pm EDT
Closed as Done on 2011-07-08 at 07:36pm EDT
Jeff Forcier (bitprophet) posted:
Applied in changeset commit:fa730cda1ab32922966afed7bb2b137768009092.
on 2011-07-08 at 07:36pm EDT
When detecting strings vs other types, use basestring.
Changelog re #380