cqlsh: Ninja-alter blob formatter (prepend '0x')

This commit is contained in:
Aleksey Yeschenko 2013-03-01 21:54:54 +03:00
parent 7093813870
commit 56b19f4af3
1 changed files with 1 additions and 1 deletions

View File

@ -107,7 +107,7 @@ def formatter_for(typname):
@formatter_for('blob')
def format_value_blob(val, colormap, **_):
bval = ''.join('%02x' % ord(c) for c in val)
bval = '0x' + ''.join('%02x' % ord(c) for c in val)
return colorme(bval, colormap, 'hex')
def format_python_formatted_type(val, colormap, color):