summaryrefslogtreecommitdiff
path: root/numpy/linalg/lapack_lite
diff options
context:
space:
mode:
authorTyler Reddy <tyler.je.reddy@gmail.com>2020-12-29 08:36:29 -0700
committerTyler Reddy <tyler.je.reddy@gmail.com>2020-12-29 08:36:29 -0700
commit74249e3f8593df5f5af0f8c0888cbfbc9c480658 (patch)
tree217779ff2b9c512d87c4fb40bb0128dac032174e /numpy/linalg/lapack_lite
parent717df4e93234a1a290aa1b472b5c1c4e600009cd (diff)
downloadnumpy-74249e3f8593df5f5af0f8c0888cbfbc9c480658.tar.gz
MAINT: multiline regex class simplify
* follow up to gh-18083 covering multi-line uses of `re.compile(..` and some cases for `re.match(..` with single (meta)character classes
Diffstat (limited to 'numpy/linalg/lapack_lite')
-rw-r--r--numpy/linalg/lapack_lite/clapack_scrub.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/linalg/lapack_lite/clapack_scrub.py b/numpy/linalg/lapack_lite/clapack_scrub.py
index f3e7d25d2..738fad7fe 100644
--- a/numpy/linalg/lapack_lite/clapack_scrub.py
+++ b/numpy/linalg/lapack_lite/clapack_scrub.py
@@ -224,7 +224,7 @@ def removeHeader(source):
def removeSubroutinePrototypes(source):
expression = re.compile(
- r'/[*] Subroutine [*]/^\s*(?:(?:inline|static)\s+){0,2}(?!else|typedef|return)\w+\s+\*?\s*(\w+)\s*\([^0]+\)\s*;?'
+ r'/\* Subroutine \*/^\s*(?:(?:inline|static)\s+){0,2}(?!else|typedef|return)\w+\s+\*?\s*(\w+)\s*\([^0]+\)\s*;?'
)
lines = LineQueue()
for line in StringIO(source):