summaryrefslogtreecommitdiff
path: root/happybase/util.py
diff options
context:
space:
mode:
authorWouter Bolsterlee <uws@xs4all.nl>2016-03-20 21:32:17 +0100
committerWouter Bolsterlee <uws@xs4all.nl>2016-03-20 21:32:17 +0100
commit5afb6114646032d8792df61922eb643e4e1d243e (patch)
tree73b36a81dc66ee0dbf1dd6a249284d7a2457f5ad /happybase/util.py
parent9cbd718c10a3089f234f1eac1236b631e1f8e7cd (diff)
parent12be787c9abf40e67acc396fce05bbf276c09ca9 (diff)
downloadhappybase-dev.tar.gz
Merge branch 'port-to-thriftpy'dev
Diffstat (limited to 'happybase/util.py')
-rw-r--r--happybase/util.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/happybase/util.py b/happybase/util.py
index 355e864..09a4c61 100644
--- a/happybase/util.py
+++ b/happybase/util.py
@@ -45,7 +45,7 @@ def pep8_to_camel_case(name, initial=False):
def thrift_attrs(obj_or_cls):
"""Obtain Thrift data type attribute names for an instance or class."""
- return [v[2] for v in obj_or_cls.thrift_spec[1:]]
+ return [v[1] for v in obj_or_cls.thrift_spec.values()]
def thrift_type_to_dict(obj):