Skip to content

Commit

Permalink
Run flynt -tc to transform concatenation to f-strings
Browse files Browse the repository at this point in the history
  • Loading branch information
akx committed Oct 15, 2024
1 parent d2437f2 commit c140c8e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pythonosc/dispatcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ def handlers_for_address(
pattern = pattern.replace("\\*", "[\\w|\\+]*")
# The rest of the syntax in the specification is like the re module so
# we're fine.
pattern = pattern + "$"
pattern = f"{pattern}$"
patterncompiled = re.compile(pattern)
matched = False

Expand Down
2 changes: 1 addition & 1 deletion pythonosc/osc_message_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ def build(self) -> osc_message.OscMessage:

# Write the parameters.
arg_types = "".join([arg[0] for arg in self._args])
dgram += osc_types.write_string("," + arg_types)
dgram += osc_types.write_string(f",{arg_types}")
for arg_type, value in self._args:
if arg_type == self.ARG_TYPE_STRING:
dgram += osc_types.write_string(value) # type: ignore[arg-type]
Expand Down

0 comments on commit c140c8e

Please sign in to comment.