Mercurial > hg > cc > cirrus_work
changeset 87:df231c95e4aa
final keystroke fixes,
note _lacks_ multi-www fix, for which see sort_date.py
author | Henry S. Thompson <ht@inf.ed.ac.uk> |
---|---|
date | Wed, 30 Aug 2023 11:10:54 +0100 |
parents | 3a2ae6057242 |
children | 49faf679d7df |
files | bin/fix_key.py |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/bin/fix_key.py Mon Aug 28 21:07:43 2023 +0100 +++ b/bin/fix_key.py Wed Aug 30 11:10:54 2023 +0100 @@ -9,6 +9,7 @@ # / "*" / "+" / "," / ";" / "=" # But # _is_ escaped in Java surt results # and additionally " \ : < = > ? \ ^ _ ` { | } are not +# Note also that quote already does _not_ quote - . / _ ~ # Also, Java surt strips _all_ leading 'www.', # where python3 surt only strips the first one. @@ -20,7 +21,7 @@ if '%' in l: (key,wt,ts)=l.split('\t') sys.stdout.write(quote(unquote(key,errors='percent'), - safe='!"$&\'()*+,/:;<=>?@[\\]^_`{|}').lower()) + safe='!"$&\'()*+,:;<=>?@[\\]^`{|}').lower()) sys.stdout.write('\t') sys.stdout.write(wt) sys.stdout.write('\t')