catacomb/__init__.py: Hack because Python 3 `hex' builtin works differently.
authorMark Wooding <mdw@distorted.org.uk>
Mon, 21 Oct 2019 19:01:45 +0000 (20:01 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Sat, 11 Apr 2020 11:44:21 +0000 (12:44 +0100)
commitab093124de0e9b0bb5d5797de7296161a2e62b40
tree8ab3a3519070d9fdd73791e0b773ab8bc67e6588
parent85866c8af471e4895023f0d9c63cc9e913e1835a
catacomb/__init__.py: Hack because Python 3 `hex' builtin works differently.

In Python 3, the `hex' builtin function converts its operand to an
integer (using the new `__index__' special method) and then converts
that to hex, rather than calling a special method directly.  The new
`bytes' type offers a `hex' method for conversion to hex, so we do the
same here.
catacomb/__init__.py
t/t-passphrase.py