Skip to content

Commit efc8036

Browse files
committed
Fixes from merge
1 parent aa0798d commit efc8036

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

cassandra/decoder.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -787,7 +787,7 @@ def read_binary_longstring(f):
787787

788788

789789
def read_longstring(f):
790-
return read_binary_longstring().decode('utf8')
790+
return read_binary_longstring(f).decode('utf8')
791791

792792

793793
def write_longstring(f, s):

tests/unit/test_types.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@
2727
EmptyValue, _CassandraType, DateType)
2828
from cassandra.query import named_tuple_factory
2929
from cassandra.decoder import (write_string, read_longstring, write_stringmap, read_stringmap, read_inet,
30-
write_inet, cql_quote, read_string, write_longstring)
30+
write_inet, read_string, write_longstring)
31+
from cassandra.encoder import cql_quote
3132

3233

3334
class TypeTests(unittest.TestCase):

0 commit comments

Comments
 (0)