mirror of
https://github.com/romanz/amodem.git
synced 2026-02-08 18:38:01 +08:00
fix colorhash
This commit is contained in:
@@ -10,8 +10,8 @@ for line in lines:
|
||||
data = binascii.unhexlify(head)
|
||||
data = map(ord, data)
|
||||
bars = ['\033[48;5;%dm \033[m' % (x,) for x in data]
|
||||
bars = '{{{}}}'.format(''.join(bars))
|
||||
bars = ''.join(bars)
|
||||
except TypeError:
|
||||
pass
|
||||
|
||||
print('%s %s %s' % (head, tail, bars))
|
||||
print('%s: %s %s' % (bars, head, tail))
|
||||
|
||||
Reference in New Issue
Block a user