diff options
author | Martin Czygan <martin.czygan@gmail.com> | 2020-12-12 03:50:31 +0100 |
---|---|---|
committer | Martin Czygan <martin.czygan@gmail.com> | 2020-12-12 03:50:31 +0100 |
commit | fc27e33c247a5c846740a8afd946efee4cdb37a7 (patch) | |
tree | 9bd6565ebbea37787f7ada55370e2dcf079f1771 /fuzzycat/utils.py | |
parent | c4b61bf40640640925c1892f66c4c10d88047a2a (diff) | |
download | fuzzycat-fc27e33c247a5c846740a8afd946efee4cdb37a7.tar.gz fuzzycat-fc27e33c247a5c846740a8afd946efee4cdb37a7.zip |
update docs
Diffstat (limited to 'fuzzycat/utils.py')
-rw-r--r-- | fuzzycat/utils.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/fuzzycat/utils.py b/fuzzycat/utils.py index e4d7bdc..7f08fa3 100644 --- a/fuzzycat/utils.py +++ b/fuzzycat/utils.py @@ -10,10 +10,15 @@ printable_no_punct = string.digits + string.ascii_letters + string.whitespace # More correct: https://www.johndcook.com/blog/2016/02/04/regular-expression-to-match-a-chemical-element/ CHEM_FORMULA = re.compile(r"([A-Z]{1,2}[0-9]{1,2})+") +def parse_page_string(s): + """ + Parse typical page strings, e.g. 150-180. + """ + raise NotImplementedError() def dict_key_exists(doc, path): """ - Return true, if a value at a given path exists. XXX: probably in glom, too. + Return true, if key at a given path exists. XXX: probably already in glom. """ try: _ = glom(doc, path) |