Skip to content
Snippets Groups Projects
Commit 4bc96685a40c authored by Pierre-Yves David's avatar Pierre-Yves David
Browse files

obsstore: drop 'date' from the metadata dictionary

We are extracting the `date` information from the metadata at read time.
However, we failed to remove it from the metadata returned in the markers. This
is now fixed.
parent 3ae6cc6173e3
No related branches found
No related tags found
No related merge requests found
......@@ -168,7 +168,8 @@
'short, %d bytes expected, got %d')
% (mdsize, len(metadata)))
off += mdsize
meta = decodemeta(metadata)
try:
date = util.parsedate(decodemeta(metadata).pop('date', '0 0'))
except util.Abort:
date = (0., 0)
......@@ -171,7 +172,8 @@
try:
date = util.parsedate(decodemeta(metadata).pop('date', '0 0'))
except util.Abort:
date = (0., 0)
metadata = encodemeta(meta)
yield (pre, sucs, flags, metadata, date, None)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment