Rev 4415: When we grab a property, make sure to actually *set* it in the props dict. in lp:///~jameinel/bzr/revision_bencode_decoder

John Arbash Meinel john at arbash-meinel.com
Thu Jun 4 21:15:39 BST 2009


At lp:///~jameinel/bzr/revision_bencode_decoder

------------------------------------------------------------
revno: 4415
revision-id: john at arbash-meinel.com-20090604201521-v23jxaxpo7k508zs
parent: john at arbash-meinel.com-20090604200121-spqriscq81q1of6g
committer: John Arbash Meinel <john at arbash-meinel.com>
branch nick: revision_bencode_decoder
timestamp: Thu 2009-06-04 15:15:21 -0500
message:
  When we grab a property, make sure to actually *set* it in the props dict.
-------------- next part --------------
=== modified file 'bzrlib/_chk_serializer_pyx.pyx'
--- a/bzrlib/_chk_serializer_pyx.pyx	2009-06-04 20:01:21 +0000
+++ b/bzrlib/_chk_serializer_pyx.pyx	2009-06-04 20:15:21 +0000
@@ -30,6 +30,7 @@
     object PyUnicode_DecodeUTF8Stateful(char *, Py_ssize_t, char *errors,
                                         Py_ssize_t *consumed)
 
+    int PyDict_SetItem(object, object, object) except -1
     int PyList_Append(object, object) except -1
 
 cdef extern from "stdlib.h":
@@ -183,6 +184,7 @@
         while self.cur[0] != c'e':
             key = self._get_utf8()
             value = self._get_unicode()
+            PyDict_SetItem(props, key, value)
         self.cur = self.cur + 1
         return props
 



More information about the bazaar-commits mailing list