Skip to content

Commit

Permalink
Replace apostrophes by left and right quotation marks
Browse files Browse the repository at this point in the history
  • Loading branch information
mkrack committed Aug 15, 2020
1 parent 5c6f972 commit 690ac71
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tools/conventions/analyze_gfortran_warnings.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
)

warning_re = re.compile(r".*[Ww]arning: (.*)")
warning_re_subst = re.compile(r"'\d+'") # replace occurrences of '49' with *
warning_re_subst = re.compile(r"\d+") # replace occurrences of '49' with *

IGNORED_WARNINGS = (
"-Wrealloc-lhs",
Expand Down Expand Up @@ -87,9 +87,9 @@ def check_warnings(fhandle):
continue

if "Unused" in warning:
if "'error'" in warning:
if "error" in warning:
continue
if "'routinep'" in warning:
if "routinep" in warning:
continue
if loc_short == "cp_common_uses.f90":
continue
Expand All @@ -101,7 +101,7 @@ def check_warnings(fhandle):
if "called with an implicit interface" in warning:
parts = warning.split()
assert parts[0] == "Procedure"
routine = parts[1].strip("'").upper()
routine = parts[1].strip("‘’").upper()
if may_call_implicit(loc, routine):
continue
print(
Expand Down

0 comments on commit 690ac71

Please sign in to comment.