From ad2673e38f0a140bfdfbc7580ea9360decf689d5 Mon Sep 17 00:00:00 2001 From: Wouter Bolsterlee Date: Sat, 29 Nov 2014 20:22:08 +0100 Subject: Simplify scanner logic: always use scannerGetList --- happybase/table.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'happybase/table.py') diff --git a/happybase/table.py b/happybase/table.py index ac897d2..1477809 100644 --- a/happybase/table.py +++ b/happybase/table.py @@ -383,11 +383,8 @@ class Table(object): else: how_many = min(batch_size, limit - n_returned) - if how_many == 1: - items = self.connection.client.scannerGet(scan_id) - else: - items = self.connection.client.scannerGetList( - scan_id, how_many) + items = self.connection.client.scannerGetList( + scan_id, how_many) if not items: break # scan has finished -- cgit v1.2.1