Skip to content

Commit fa6ba52

Browse files
committed
[py-fprettify] Patch v0.3.7
See fortran-lang/fprettify#176 for full details. Fixes SyntaxWarning: invalid escape sequence '\s' warning at line 272 of __init__.py by converting to raw string.
1 parent 512a691 commit fa6ba52

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
diff --git a/fprettify/__init__.py b/fprettify/__init__.py
2+
index d6450a3..76add49 100644
3+
--- a/fprettify/__init__.py
4+
+++ b/fprettify/__init__.py
5+
@@ -269,7 +269,7 @@ class plusminus_parser(parser_re):
6+
LR_OPS_RE = [REL_OP_RE, LOG_OP_RE, plusminus_parser(PLUSMINUS_RE), MULTDIV_RE, PRINT_RE]
7+
8+
USE_RE = re.compile(
9+
- SOL_STR + "USE(\s+|(,.+?)?::\s*)\w+?((,.+?=>.+?)+|,\s*only\s*:.+?)?$" + EOL_STR, RE_FLAGS)
10+
+ SOL_STR + r"USE(\s+|(,.+?)?::\s*)\w+?((,.+?=>.+?)+|,\s*only\s*:.+?)?$" + EOL_STR, RE_FLAGS)
11+
12+
# markups to deactivate formatter
13+
NO_ALIGN_RE = re.compile(SOL_STR + r"&\s*[^\s*]+")

repos/spack_repo/builtin/packages/py_fprettify/package.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,5 @@ class PyFprettify(PythonPackage):
2020

2121
depends_on("py-setuptools", type="build")
2222
depends_on("py-configargparse", type=("build", "run"))
23+
24+
patch('fprettify370_pr176.patch', when="@0.3.7")

0 commit comments

Comments
 (0)