mirror of
https://github.com/0intro/wmii
synced 2024-11-22 05:42:05 +03:00
[python] Fix broken patch.
This commit is contained in:
parent
05e71d0715
commit
31f49d1c2a
@ -24,7 +24,7 @@ class Int(Field):
|
|||||||
if n not in cls.encoders:
|
if n not in cls.encoders:
|
||||||
exec ('def enc(n):\n' +
|
exec ('def enc(n):\n' +
|
||||||
' assert n == n & 0x%s, "Arithmetic overflow"\n' +
|
' assert n == n & 0x%s, "Arithmetic overflow"\n' +
|
||||||
' return ''.join((%s,))'
|
' return "".join((%s,))'
|
||||||
) % ('ff' * n,
|
) % ('ff' * n,
|
||||||
','.join('chr((n >> %d) & 0xff)' % (i * 8)
|
','.join('chr((n >> %d) & 0xff)' % (i * 8)
|
||||||
for i in range(0, n)))
|
for i in range(0, n)))
|
||||||
|
Loading…
Reference in New Issue
Block a user