summaryrefslogtreecommitdiff
path: root/happybase/table.py
diff options
context:
space:
mode:
authorWouter Bolsterlee <uws@xs4all.nl>2016-03-28 19:52:08 +0200
committerWouter Bolsterlee <wouter@bolsterl.ee>2016-07-27 19:08:46 +0200
commit76ed812f5f8efa90dd41d51de7952f4f15891ff2 (patch)
tree103e12f3a4430ad57ade2f53c20aaa549da4a324 /happybase/table.py
parent5cdd102b78d696d123abae4424c1a63f5885e395 (diff)
downloadhappybase-76ed812f5f8efa90dd41d51de7952f4f15891ff2.tar.gz
Rewrite str_increment() as bytes_increment()
...and make it work on both Python 3 and 2.
Diffstat (limited to 'happybase/table.py')
-rw-r--r--happybase/table.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/happybase/table.py b/happybase/table.py
index 63425f6..8866109 100644
--- a/happybase/table.py
+++ b/happybase/table.py
@@ -10,7 +10,7 @@ from six import iteritems
from .Hbase_thrift import TScan
-from .util import thrift_type_to_dict, str_increment, OrderedDict
+from .util import thrift_type_to_dict, bytes_increment, OrderedDict
from .batch import Batch
logger = logging.getLogger(__name__)
@@ -317,7 +317,7 @@ class Table(object):
"or 'row_stop'")
row_start = row_prefix
- row_stop = str_increment(row_prefix)
+ row_stop = bytes_increment(row_prefix)
if row_start is None:
row_start = ''