changeset 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
files workers/bin/_timedWhich.py
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/workers/bin/_timedWhich.py	Sat Dec 01 12:13:34 2018 +0000
+++ b/workers/bin/_timedWhich.py	Sat Dec 01 16:25:04 2018 +0000
@@ -25,6 +25,9 @@
       lmc=sep.split(lm)
       if len(lmc)==1 and lmc[0].startswith('serve-proxy-cache:'):
         r='serve-proxy-cache:'
+      elif len(lmc)>14 and lmc[-2][-1]==')':
+        # e.g. Sun, 23 Apr 2017 11:10(02017Sun, 23 Apr 2017 11:10:29 +0300Sun, 23 Apr 2017 11:10:29 +030017) GMT
+        lmc=lmc[:-12]
       else:
         if oddlast.fullmatch(lmc[-1]):
           lmc.pop()