cmds: handle py2/3 unicode differences when showing untracked binary files
commit452fccdaa8b158ed24015487e06760a3f342ed63
authorDavid Aguilar <davvid@gmail.com>
Tue, 17 Mar 2020 11:28:40 +0000 (17 04:28 -0700)
committerDavid Aguilar <davvid@gmail.com>
Tue, 17 Mar 2020 11:28:40 +0000 (17 04:28 -0700)
treeb4d8f9d9f5fd4b9a604ce17cff7a8cd330d6dddf
parent295ea6f5aa146df8e6a6b07c894392bbe3a1ce84
cmds: handle py2/3 unicode differences when showing untracked binary files

bytes[index] on Python3 returns ints.  bytes[index] on Python2 returns
strings.  Add compat functions to paper over these differences.

This fixes a traceback when displaying untracked symlinks on Python3,
and binary data on Python2.
cola/cmds.py
cola/compat.py
cola/core.py