aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@archive.org>2021-10-27 14:55:32 -0700
committerBryan Newbold <bnewbold@archive.org>2021-10-27 18:25:58 -0700
commit6c103e4dc48e7e0c0f6cdedc18b0afe33babf1ac (patch)
tree43f8c1eb350ce70aacff9bf0f1f2b2529acade5e
parent1fcd19dc11a7b3b0e8c9020b7d1c2db4b62091f3 (diff)
downloadfatcat-scholar-6c103e4dc48e7e0c0f6cdedc18b0afe33babf1ac.tar.gz
fatcat-scholar-6c103e4dc48e7e0c0f6cdedc18b0afe33babf1ac.zip
scrub_text: remove unused mimetype arg
To resolve a warning caught by pytype
-rw-r--r--fatcat_scholar/schema.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/fatcat_scholar/schema.py b/fatcat_scholar/schema.py
index 901379a..6c9307d 100644
--- a/fatcat_scholar/schema.py
+++ b/fatcat_scholar/schema.py
@@ -435,7 +435,7 @@ def clean_str(raw: Optional[str], strip_trailing_period: bool = False) -> Option
return text
-def scrub_text(raw: str, mimetype: str = None) -> Optional[str]:
+def scrub_text(raw: str) -> Optional[str]:
"""
This function takes a mimetype-hinted string and tries to reduce it to a
simple token-and-punctuation scheme with any and all markup removed. Eg,