summaryrefslogtreecommitdiff
path: root/progress.py
diff options
context:
space:
mode:
authorMegaMech <MegaMech@users.noreply.github.com>2023-04-04 19:54:10 -0600
committerGitHub <noreply@github.com>2023-04-04 19:54:10 -0600
commit772091700c4dc10141b56588d2ea81930fd8dfbb (patch)
tree89ef8d8177a1434ee3c0dda32240b8c3d2525c95 /progress.py
parent0b7ad56ad9a83236b3acc6202b7a568ed19a5242 (diff)
Update progress.py (#300)
Diffstat (limited to 'progress.py')
-rw-r--r--progress.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/progress.py b/progress.py
index 45753c7b1..3b55bd5e5 100644
--- a/progress.py
+++ b/progress.py
@@ -23,7 +23,7 @@ def GetNonMatchingFunctions(files):
# credits.c contains Japanese characters which are not supported by utf-8
# To prevent errors it cannot be included.
if (file == "src/credits.c"):
- continue
+ continue
with open(file) as f:
functions += re.findall(NON_MATCHING_PATTERN, f.read(), re.DOTALL)
@@ -33,6 +33,8 @@ def CountMipsToCFunctions(files):
functions = []
for file in files:
+ if (file == "src/credits.c"):
+ continue
with open(file) as f:
functions += re.findall(MIPS_TO_C_FUNC_COUNT_PATTERN, f.read(), re.DOTALL)
@@ -41,6 +43,8 @@ def CountNonMatchingFunctions(files):
functions = []
for file in files:
+ if (file == "src/credits.c"):
+ continue
with open(file) as f:
functions += re.findall(NON_MATCHING_FUNC_COUNT_PATTERN, f.read(), re.DOTALL)