equal
deleted
inserted
replaced
495 return NULL; |
495 return NULL; |
496 } |
496 } |
497 if (self->format_version != format_v1) { |
497 if (self->format_version != format_v1) { |
498 PyErr_Format(PyExc_RuntimeError, |
498 PyErr_Format(PyExc_RuntimeError, |
499 "version header should go in the docket, not the " |
499 "version header should go in the docket, not the " |
500 "index: %lu", |
500 "index: %d", |
501 header); |
501 header); |
502 return NULL; |
502 return NULL; |
503 } |
503 } |
504 putbe32(header, out); |
504 putbe32(header, out); |
505 return PyBytes_FromStringAndSize(out, 4); |
505 return PyBytes_FromStringAndSize(out, 4); |