Skip to content

Commit

Permalink
remove enum prefix for older Python versions
Browse files Browse the repository at this point in the history
  • Loading branch information
totaam committed Jul 1, 2024
1 parent d488318 commit 8eabd33
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion xpra/scripts/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -3016,7 +3016,8 @@ def multimode(displays):


def may_cleanup_socket(state, display, sockpath, clean_states=(DotXpra.DEAD,)) -> None:
sys.stdout.write(f"\t{state} session at {display}")
state_str = getattr(state, "value", str(state))
sys.stdout.write(f"\t{state_str} session at {display}")
if state in clean_states:
try:
stat_info = os.stat(sockpath)
Expand Down

0 comments on commit 8eabd33

Please sign in to comment.