@@ -284,17 +284,17 @@ def cells(self, row, column, versions=None, timestamp=None,
284284 partial_row_data = self ._low_level_table .read_row (row , filter_ = filter_ )
285285 if partial_row_data is None :
286286 return []
287- else :
288- cells = partial_row_data ._cells
289- # We know that `_filter_chain_helper` has already verified that
290- # column will split as such.
291- column_family_id , column_qualifier = column .split (':' )
292- # NOTE: We expect the only key in `cells` is `column_family_id`
293- # and the only key `cells[column_family_id]` is
294- # `column_qualifier`. But we don't check that this is true.
295- curr_cells = cells [column_family_id ][column_qualifier ]
296- return _cells_to_pairs (
297- curr_cells , include_timestamp = include_timestamp )
287+
288+ cells = partial_row_data ._cells
289+ # We know that `_filter_chain_helper` has already verified that
290+ # column will split as such.
291+ column_family_id , column_qualifier = column .split (':' )
292+ # NOTE: We expect the only key in `cells` is `column_family_id`
293+ # and the only key `cells[column_family_id]` is
294+ # `column_qualifier`. But we don't check that this is true.
295+ curr_cells = cells [column_family_id ][column_qualifier ]
296+ return _cells_to_pairs (
297+ curr_cells , include_timestamp = include_timestamp )
298298
299299 def scan (self , row_start = None , row_stop = None , row_prefix = None ,
300300 columns = None , timestamp = None ,
@@ -374,6 +374,9 @@ def scan(self, row_start=None, row_stop=None, row_prefix=None,
374374 :param kwargs: Remaining keyword arguments. Provided for HappyBase
375375 compatibility.
376376
377+ :rtype: tuple
378+ :returns: (Rather, yields) pairs of row key and the dictionary of
379+ values encountered in that row.
377380 :raises: If ``limit`` is set but non-positive, or if ``row_prefix`` is
378381 used with row start/stop,
379382 :class:`TypeError <exceptions.TypeError>` if a string
0 commit comments