Updated Branches: refs/heads/cassandra-1.2 709381387 -> 56b19f4af
cqlsh: Ninja-alter blob formatter (prepend '0x') Project: http://git-wip-us.apache.org/repos/asf/cassandra/repo Commit: http://git-wip-us.apache.org/repos/asf/cassandra/commit/56b19f4a Tree: http://git-wip-us.apache.org/repos/asf/cassandra/tree/56b19f4a Diff: http://git-wip-us.apache.org/repos/asf/cassandra/diff/56b19f4a Branch: refs/heads/cassandra-1.2 Commit: 56b19f4af3816aa2f3d1dec26f90179f8b3609cb Parents: 7093813 Author: Aleksey Yeschenko <alek...@apache.org> Authored: Fri Mar 1 21:54:54 2013 +0300 Committer: Aleksey Yeschenko <alek...@apache.org> Committed: Fri Mar 1 21:54:54 2013 +0300 ---------------------------------------------------------------------- pylib/cqlshlib/formatting.py | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cassandra/blob/56b19f4a/pylib/cqlshlib/formatting.py ---------------------------------------------------------------------- diff --git a/pylib/cqlshlib/formatting.py b/pylib/cqlshlib/formatting.py index 6322caf..b970eb9 100644 --- a/pylib/cqlshlib/formatting.py +++ b/pylib/cqlshlib/formatting.py @@ -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):