Show More
@@ -232,7 +232,7 b' static PyObject *lmiter_iterentriesnext(' | |||||
232 | size_t pl; |
|
232 | size_t pl; | |
233 | line *l; |
|
233 | line *l; | |
234 | Py_ssize_t consumed; |
|
234 | Py_ssize_t consumed; | |
235 | PyObject *path = NULL, *hash = NULL, *flags = NULL; |
|
235 | PyObject *ret = NULL, *path = NULL, *hash = NULL, *flags = NULL; | |
236 | l = lmiter_nextline((lmIter *)o); |
|
236 | l = lmiter_nextline((lmIter *)o); | |
237 | if (!l) { |
|
237 | if (!l) { | |
238 | goto bail; |
|
238 | goto bail; | |
@@ -246,12 +246,12 b' static PyObject *lmiter_iterentriesnext(' | |||||
246 | if (!path || !hash || !flags) { |
|
246 | if (!path || !hash || !flags) { | |
247 | goto bail; |
|
247 | goto bail; | |
248 | } |
|
248 | } | |
249 |
ret |
|
249 | ret = PyTuple_Pack(3, path, hash, flags); | |
250 | bail: |
|
250 | bail: | |
251 | Py_XDECREF(path); |
|
251 | Py_XDECREF(path); | |
252 | Py_XDECREF(hash); |
|
252 | Py_XDECREF(hash); | |
253 | Py_XDECREF(flags); |
|
253 | Py_XDECREF(flags); | |
254 |
return |
|
254 | return ret; | |
255 | } |
|
255 | } | |
256 |
|
256 | |||
257 | static PyTypeObject lazymanifestEntriesIterator = { |
|
257 | static PyTypeObject lazymanifestEntriesIterator = { |
General Comments 0
You need to be logged in to leave comments.
Login now