Skip to content

Commit 1d42c10

Browse files
committed
Update for later python compatibility
1 parent 2a75bd3 commit 1d42c10

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

src/rom24/game_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -467,7 +467,7 @@ def old_is_name(arg, name):
467467
return False
468468

469469

470-
_breakup = re.compile("(\".*?\"|'.*?'|[^\s]+)")
470+
_breakup = re.compile(r"(\".*?\"|'.*?'|[^\s]+)")
471471

472472

473473
def is_name(arg, name):

src/rom24/instance.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ def from_json(data):
188188
# there's a from_json() method to call. If so, let it handle things.
189189
if hasattr(data, "keys"):
190190
for k in data.keys():
191-
found = re.findall("__class__\/((?:\w+)\.)*(\w+)", k)
191+
found = re.findall(r"__class__/((?:\w+)\.)*(\w+)", k)
192192
if found:
193193
import importlib
194194

src/rom24/miniboa/telnet.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,7 @@ def _recv_byte(self, byte):
366366

367367
def _echo_byte(self, byte):
368368
"""
369-
Echo a character back to the client and convert LF into CR\LF.
369+
Echo a character back to the client and convert LF into CR\\LF.
370370
"""
371371
if byte == "\n":
372372
self.send_buffer += "\r"

src/rom24/sys_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import psutil # type: ignore
44
import time
55
from datetime import datetime
6-
from collections import Iterable
6+
from collections.abc import Iterable
77
import itertools
88
import logging
99

0 commit comments

Comments
 (0)