Mercurial > hg > cc > azure
comparison workers/bin/_timedWhich.py @ 45:21152d241e1a
one last hack
author | Henry S. Thompson <ht@markup.co.uk> |
---|---|
date | Sat, 01 Dec 2018 16:25:04 +0000 |
parents | 1342f6669352 |
children | 7a4e49689935 |
comparison
equal
deleted
inserted
replaced
44:1342f6669352 | 45:21152d241e1a |
---|---|
23 t=tab[k] | 23 t=tab[k] |
24 lm=m.group(1) | 24 lm=m.group(1) |
25 lmc=sep.split(lm) | 25 lmc=sep.split(lm) |
26 if len(lmc)==1 and lmc[0].startswith('serve-proxy-cache:'): | 26 if len(lmc)==1 and lmc[0].startswith('serve-proxy-cache:'): |
27 r='serve-proxy-cache:' | 27 r='serve-proxy-cache:' |
28 elif len(lmc)>14 and lmc[-2][-1]==')': | |
29 # e.g. Sun, 23 Apr 2017 11:10(02017Sun, 23 Apr 2017 11:10:29 +0300Sun, 23 Apr 2017 11:10:29 +030017) GMT | |
30 lmc=lmc[:-12] | |
28 else: | 31 else: |
29 if oddlast.fullmatch(lmc[-1]): | 32 if oddlast.fullmatch(lmc[-1]): |
30 lmc.pop() | 33 lmc.pop() |
31 r=' '.join(c for c in lmc if not losers.fullmatch(c)) | 34 r=' '.join(c for c in lmc if not losers.fullmatch(c)) |
32 t[r]=t.get(r,0)+1 | 35 t[r]=t.get(r,0)+1 |