diff options
author | Wouter Bolsterlee <uws@xs4all.nl> | 2014-11-29 20:22:08 +0100 |
---|---|---|
committer | Wouter Bolsterlee <uws@xs4all.nl> | 2014-11-29 20:22:08 +0100 |
commit | ad2673e38f0a140bfdfbc7580ea9360decf689d5 (patch) | |
tree | 4bc1aa79843bdca8072ac68f51d42a7b82f34fa8 /happybase/table.py | |
parent | afa022f8c6ab45506ab2d80f0de505a97a53a5f5 (diff) | |
download | happybase-ad2673e38f0a140bfdfbc7580ea9360decf689d5.tar.gz |
Simplify scanner logic: always use scannerGetList
Diffstat (limited to 'happybase/table.py')
-rw-r--r-- | happybase/table.py | 7 |
1 files changed, 2 insertions, 5 deletions
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 |