def _truncate_result(self, result_keys, max_keys):
    if (max_keys == 0):
        result_keys = []
        is_truncated = True
        next_continuation_token = None
    elif (len(result_keys) > max_keys):
        is_truncated = 'true'
        result_keys = result_keys[:max_keys]
        item = result_keys[(- 1)]
        next_continuation_token = (item.name if isinstance(item, FakeKey) else item)
    else:
        is_truncated = 'false'
        next_continuation_token = None
    return (result_keys, is_truncated, next_continuation_token)
def _truncate_result(self, result_keys, max_keys):
    if (max_keys == 0):
        result_keys = []
        is_truncated = True
        next_continuation_token = None
    elif (len(result_keys) > max_keys):
        is_truncated = 'true'
        result_keys = result_keys[:max_keys]
        item = result_keys[(- 1)]
        next_continuation_token = (item.name if isinstance(item, FakeKey) else item)
    else:
        is_truncated = 'false'
        next_continuation_token = None
    return (result_keys, is_truncated, next_continuation_token)