Mercurial > hg > cc > cirrus_work
changeset 204:81ca65d44241
normalise % counts by non-empty bases only
author | Henry S. Thompson <ht@inf.ed.ac.uk> |
---|---|
date | Wed, 06 Dec 2023 13:33:25 +0000 |
parents | 3e5afe881908 |
children | 5e050e313f8f |
files | lib/python/cc/lmh/ulens.py |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/lib/python/cc/lmh/ulens.py Tue Dec 05 19:49:29 2023 +0000 +++ b/lib/python/cc/lmh/ulens.py Wed Dec 06 13:33:25 2023 +0000 @@ -11,6 +11,6 @@ print(len(u), *(len(p) for p in uu), 1 if b'xn--' in uu.netloc else 0, - uu.path.count(b'%'), - uu.query.count(b'%'), + uu.path.count(b'%') if uu.path else 'NaN', + uu.query.count(b'%') if uu.query else 'NaN', sep='\t')