mirror of
https://github.com/0intro/wmii
synced 2024-11-21 21:31:33 +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:
|
||||
exec ('def enc(n):\n' +
|
||||
' assert n == n & 0x%s, "Arithmetic overflow"\n' +
|
||||
' return ''.join((%s,))'
|
||||
' return "".join((%s,))'
|
||||
) % ('ff' * n,
|
||||
','.join('chr((n >> %d) & 0xff)' % (i * 8)
|
||||
for i in range(0, n)))
|
||||
|
Loading…
Reference in New Issue
Block a user