Permalink
Browse files

Handle false-y start and finish_token

  • Loading branch information...
1 parent aead733 commit 9ff9bdb2a9309b27720f99555fde85acb07bd89f @thobbs thobbs committed Jul 31, 2013
Showing with 6 additions and 6 deletions.
  1. +6 −6 pycassa/columnfamily.py
View
12 pycassa/columnfamily.py
@@ -936,15 +936,15 @@ def get_range(self, start="", finish="", columns=None, column_start="",
"ColumnFamily.get_range() received incompatible arguments: "
"'finish_token' may not be used with 'finish'")
- if not start_token:
- kr_args['start_key'] = self._pack_key(start)
- else:
+ if start_token is not None:
kr_args['start_token'] = start_token
-
- if not finish_token:
- kr_args['end_key'] = self._pack_key(finish)
else:
+ kr_args['start_key'] = self._pack_key(start)
+
+ if finish_token is not None:
kr_args['end_token'] = finish_token
+ else:
+ kr_args['end_key'] = self._pack_key(finish)
if buffer_size is None:
buffer_size = self.buffer_size

0 comments on commit 9ff9bdb

Please sign in to comment.