From: Rick Phillips Date: Thu, 21 May 2015 15:16:28 +0000 (-0700) Subject: python client: Fix broken int2bin() in htsmsg X-Git-Tag: v4.2.1~2504 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f658c06ace9e78f3178e52f35ee3346dc88fe254;p=thirdparty%2Ftvheadend.git python client: Fix broken int2bin() in htsmsg --- diff --git a/lib/py/tvh/htsmsg.py b/lib/py/tvh/htsmsg.py index dc7d50881..03ac1ba34 100644 --- a/lib/py/tvh/htsmsg.py +++ b/lib/py/tvh/htsmsg.py @@ -24,7 +24,7 @@ Support for processing HTSMSG binary format def int2bin ( i ): return chr(i >> 24 & 0xFF) + chr(i >> 16 & 0xFF)\ - + chr(i >> 16 & 0xFF) + chr(i & 0xFF) + + chr(i >> 8 & 0xFF) + chr(i & 0xFF) def bin2int ( d ): return (ord(d[0]) << 24) + (ord(d[1]) << 16)\