Commit c246f358 authored by Shane Hathaway's avatar Shane Hathaway

Accept None as the serial when storing a new object

parent 0cbd1f05
...@@ -142,6 +142,8 @@ class TmpStore: ...@@ -142,6 +142,8 @@ class TmpStore:
pos=self._pos pos=self._pos
file.seek(pos) file.seek(pos)
l=len(data) l=len(data)
if serial is None:
serial = '\0\0\0\0\0\0\0\0'
file.write(oid+serial+p64(l)) file.write(oid+serial+p64(l))
file.write(data) file.write(data)
self._tindex.append((oid,pos)) self._tindex.append((oid,pos))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment