diff options
author | Bryan Newbold <bnewbold@archive.org> | 2021-10-27 14:55:32 -0700 |
---|---|---|
committer | Bryan Newbold <bnewbold@archive.org> | 2021-10-27 18:25:58 -0700 |
commit | 6c103e4dc48e7e0c0f6cdedc18b0afe33babf1ac (patch) | |
tree | 43f8c1eb350ce70aacff9bf0f1f2b2529acade5e /fatcat_scholar/schema.py | |
parent | 1fcd19dc11a7b3b0e8c9020b7d1c2db4b62091f3 (diff) | |
download | fatcat-scholar-6c103e4dc48e7e0c0f6cdedc18b0afe33babf1ac.tar.gz fatcat-scholar-6c103e4dc48e7e0c0f6cdedc18b0afe33babf1ac.zip |
scrub_text: remove unused mimetype arg
To resolve a warning caught by pytype
Diffstat (limited to 'fatcat_scholar/schema.py')
-rw-r--r-- | fatcat_scholar/schema.py | 2 |
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, |