Skip to content

Commit

Permalink
fix new ruff re errors
Browse files Browse the repository at this point in the history
  • Loading branch information
alexfikl authored and inducer committed Nov 24, 2024
1 parent 15e05ed commit 8ca1648
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions pymbolic/interop/maxima.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,9 @@
OUT_PROMPT_RE = re.compile(br"\(%o([0-9]+)\) ")
ERROR_PROMPT_RE = re.compile(
br"(Principal Value|debugmode|incorrect syntax|Maxima encountered a Lisp error)")
ASK_RE = re.compile(br"(zero or nonzero|an integer|positive, negative, or zero|"
b"positive or negative|positive or zero)")
ASK_RE = re.compile(
br"(zero or nonzero|an integer|positive, negative, or zero|"
br"positive or negative|positive or zero)")
MULTI_WHITESPACE = re.compile(br"[ \r\n\t]+")


Expand Down
2 changes: 1 addition & 1 deletion pymbolic/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
def _parse_version(version: str) -> tuple[tuple[int, ...], str]:
import re

m = re.match("^([0-9.]+)([a-z0-9]*?)$", VERSION_TEXT)
m = re.match(r"^([0-9.]+)([a-z0-9]*?)$", VERSION_TEXT)
assert m is not None

return tuple(int(nr) for nr in m.group(1).split(".")), m.group(2)
Expand Down

0 comments on commit 8ca1648

Please sign in to comment.