Skip to content

Commit

Permalink
#3978 workaround for older versions of Cython
Browse files Browse the repository at this point in the history
  • Loading branch information
totaam committed Sep 24, 2023
1 parent ff4df9b commit 37b5a82
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions xpra/net/protocol/socket_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -477,7 +477,7 @@ def enable_default_encoder(self) -> None:

def enable_encoder_from_caps(self, caps:typedict) -> bool:
options = packet_encoding.get_enabled_encoders(order=packet_encoding.PERFORMANCE_ORDER)
log(f"enable_encoder_from_caps(..) {options=}")
log(f"enable_encoder_from_caps(..) options={options}")
for e in options:
if caps.boolget(e):
self.enable_encoder(e)
Expand Down Expand Up @@ -1080,7 +1080,7 @@ def debug_str(s):
log(f"failed to parse {etype} packet: %s", hexstr(data[:128]), exc_info=True)
data_str = memoryview_to_bytes(data)
log(" data: %s", repr_ellipsized(data_str))
log(f" {packet_index=}, {payload_size=}, buffer size={bl}")
log(f" packet_index={packet_index}, payload_size={payload_size}, buffer size={bl}")
log(" full data: %s", hexstr(data_str))
self.gibberish(f"failed to parse {etype} packet", data)
return
Expand Down

0 comments on commit 37b5a82

Please sign in to comment.