Skip to content

Commit 8103cf8

Browse files
committed
fix: replace Python 2 bytes.encode('hex') with bytes.hex()
1 parent dd822a9 commit 8103cf8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cassandra/cluster.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5701,7 +5701,7 @@ def _set_result(self, host, connection, pool, response):
57015701
if not self.prepared_statement:
57025702
log.error(
57035703
"Tried to execute unknown prepared statement: id=%s",
5704-
query_id.encode("hex"),
5704+
query_id.hex(),
57055705
)
57065706
self._set_final_exception(response)
57075707
return

0 commit comments

Comments
 (0)