]> git.ipfire.org Git - thirdparty/tvheadend.git/commit
python: Make files python2/python3 compatible.
authorE.Smith <31170571+azlm8t@users.noreply.github.com>
Tue, 25 Sep 2018 00:08:34 +0000 (01:08 +0100)
committerperexg <perex@perex.cz>
Wed, 26 Sep 2018 15:31:44 +0000 (17:31 +0200)
commit3f90477707b8cafa53dae4410be426b86251f1aa
tree87d9aa44f7e99e3d3e72681d75a7c75ef7008d9e
parent83e5235c011de2094551908405fdfe22eb4d73b2
python: Make files python2/python3 compatible.

Ensure files are compatible with python2 and python3.
Main differences:
- print requires brackets
- string is bytes in python2 and unicode in python3
- need to use struct to pack/unpack binary data
- need to convert socket data to bytearray to allow data extraction
lib/py/tvh/htsmsg.py
lib/py/tvh/htsp.py