This is an archive of the discontinued Mercurial Phabricator instance.

py3: use bytes instead of str in isinstance
ClosedPublic

Authored by pulkit on Feb 26 2018, 7:32 AM.

Details

Summary

Internally we use bytes everywhere, and str on Python 3 is unicodes, so we need
to make sure we are doing the right check.

Diff Detail

Repository
rHG Mercurial
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

pulkit created this revision.Feb 26 2018, 7:32 AM
This revision was automatically updated to reflect the committed changes.