Skip to content

Commit e18bd6a

Browse files
committed
fix: SyntaxWarning for CoD protocols in Python 3.12+
1 parent bee9070 commit e18bd6a

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

opengsq/protocols/cod1.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ async def get_full_status(self, challenge: str = "xxx") -> Cod1Status:
111111
def _parse_key_value_pairs(self, br: BinaryReader) -> dict[str, str]:
112112
"""
113113
Parses key-value pairs from the binary reader.
114-
CoD1 uses backslash (\) as delimiter between keys and values.
114+
CoD1 uses backslash ( \\ ) as delimiter between keys and values.
115115
116116
:param br: The BinaryReader object to parse from.
117117
:return: A dictionary containing the parsed key-value pairs.

opengsq/protocols/cod4.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ async def get_full_status(self, challenge: str = "xxx") -> Cod4Status:
111111
def _parse_key_value_pairs(self, br: BinaryReader) -> dict[str, str]:
112112
"""
113113
Parses key-value pairs from the binary reader.
114-
CoD4 uses backslash (\) as delimiter between keys and values.
114+
CoD4 uses backslash ( \\ ) as delimiter between keys and values.
115115
116116
:param br: The BinaryReader object to parse from.
117117
:return: A dictionary containing the parsed key-value pairs.

opengsq/protocols/cod5.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ async def get_full_status(self, challenge: str = "xxx") -> Cod5Status:
111111
def _parse_key_value_pairs(self, br: BinaryReader) -> dict[str, str]:
112112
"""
113113
Parses key-value pairs from the binary reader.
114-
CoD5 uses backslash (\) as delimiter between keys and values.
114+
CoD5 uses backslash ( \\ ) as delimiter between keys and values.
115115
116116
:param br: The BinaryReader object to parse from.
117117
:return: A dictionary containing the parsed key-value pairs.

0 commit comments

Comments
 (0)