Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
## About this fork

This fork was made to quickly fix an incompatibility with Python 3.11 (the default Python version of Debian 12 "Bookworm")

The following is the original README from (https://github.com/Qirky/Troop)

# Troop v0.10.3

## Real-time collaborative live coding
Expand Down
8 changes: 4 additions & 4 deletions src/message.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@
import json

def escape_chars(s):
return s.replace(">", "\>").replace("<", "\<")
return s.replace(r">", r"\>").replace(r"<", r"\<")

def unescape_chars(s):
return s.replace("\>", ">").replace("\<", "<")
return s.replace(r"\>", r">").replace(r"\<", r"<")

class NetworkMessageReader:
def __init__(self):
Expand Down Expand Up @@ -181,7 +181,7 @@ def password(password):
def header(cls):
# args = inspect.getargspec(cls.__init__).args
# args[0] = 'type'
args = ['type', 'msg_id'] + inspect.getargspec(cls.__init__).args[1:]
args = ['type', 'msg_id'] + inspect.getfullargspec(cls.__init__).args[1:]
return args

# Define types of message
Expand Down Expand Up @@ -348,4 +348,4 @@ def __str__(self):

msg = MSG_SET_MARK(42, 24)
print(msg,)
print(msg.header())
print(msg.header())