Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
compat: rework how
bstr()
is defined
Arrange for `bstr()` to be defined as a function for Python 3 only. Avoid exception by checking the Python version explicitly. Set `bstr = bytes` for modern Python2 and use `str` for historical Pythons. Related-to: git-cola#589 Signed-off-by: David Aguilar <davvid@gmail.com>
- Loading branch information