changeset 119:1d12b51c4d59

minor bug wrt EOF of final cdx input file
author Henry S. Thompson <ht@inf.ed.ac.uk>
date Wed, 27 Sep 2023 17:29:51 +0100
parents 9d14e7c32737
children 1d1bd22124c0
files bin/merge_date.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/bin/merge_date.py	Wed Sep 27 17:29:09 2023 +0100
+++ b/bin/merge_date.py	Wed Sep 27 17:29:51 2023 +0100
@@ -95,7 +95,7 @@
 
   dkey, ddate, durl, dtime = nextDate(df,1)
 
-  while (xl := nextLine())[0] is not None:
+  while (xl := nextLine()) is not None:
     xkey, xdate, xprops = xl.split(b' ', maxsplit=2)
     m = URL.match(xprops)
     if m: