Skip to content

Commit d25ffbd

Browse files
committed
Generators map to list collections, not sequences
1 parent f166102 commit d25ffbd

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

cassandra/decoder.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -788,7 +788,7 @@ def cql_encode_bytes(val):
788788
return '0x' + hexlify(val)
789789
else:
790790
# python 2.6 requires string or read-only buffer for hexlify
791-
def cql_encode_bytes(val):
791+
def cql_encode_bytes(val): # noqa
792792
return '0x' + hexlify(buffer(val))
793793

794794

@@ -848,5 +848,5 @@ def cql_encode_all_types(val):
848848
tuple: cql_encode_list_collection,
849849
set: cql_encode_set_collection,
850850
frozenset: cql_encode_set_collection,
851-
types.GeneratorType: cql_encode_sequence
851+
types.GeneratorType: cql_encode_list_collection
852852
}

0 commit comments

Comments
 (0)