summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWouter Bolsterlee <uws@xs4all.nl>2016-03-28 19:30:24 +0200
committerWouter Bolsterlee <wouter@bolsterl.ee>2016-07-27 19:08:46 +0200
commit5cdd102b78d696d123abae4424c1a63f5885e395 (patch)
tree71b1419435b27f810a5151a2a721637188bf5f47
parent43f93ae7ae810294e309d6f895830fb990879186 (diff)
downloadhappybase-5cdd102b78d696d123abae4424c1a63f5885e395.tar.gz
Column families are byte strings
...hence require splitting using a byte string.
-rw-r--r--happybase/table.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/happybase/table.py b/happybase/table.py
index 75c30ed..63425f6 100644
--- a/happybase/table.py
+++ b/happybase/table.py
@@ -64,14 +64,14 @@ class Table(object):
descriptors = self.connection.client.getColumnDescriptors(self.name)
families = dict()
for name, descriptor in descriptors.items():
- name = name.rstrip(':')
+ name = name.rstrip(b':')
families[name] = thrift_type_to_dict(descriptor)
return families
def _column_family_names(self):
"""Retrieve the column family names for this table (internal use)"""
names = self.connection.client.getColumnDescriptors(self.name).keys()
- return [name.rstrip(':') for name in names]
+ return [name.rstrip(b':') for name in names]
def regions(self):
"""Retrieve the regions for this table.