# HG changeset patch # User Henry S. Thompson # Date 1701869605 0 # Node ID 81ca65d44241eb5b07709b51398950071a8863ce # Parent 3e5afe88190835ce7bad53740bd83f169e76751e normalise % counts by non-empty bases only diff -r 3e5afe881908 -r 81ca65d44241 lib/python/cc/lmh/ulens.py --- 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')