py3: use bytes instead of str in isinstance...
py3: use bytes instead of str in isinstance
Internally we use bytes everywhere, and str on Python 3 is unicodes, so we need
to make sure we are doing the right check.
Differential Revision:
https://phab.mercurial-scm.org/D2458