svn path=/main/branches/2.1.7/; revision=15525
def _getitem(self, cpv):
# we override getitem because it's just a cpickling of the data handed in.
- return pickle.loads(self.__db[cpv])
+ return pickle.loads(self.__db[_unicode_encode(cpv)])
def _setitem(self, cpv, values):
- self.__db[cpv] = pickle.dumps(values,pickle.HIGHEST_PROTOCOL)
+ self.__db[_unicode_encode(cpv)] = pickle.dumps(values,pickle.HIGHEST_PROTOCOL)
def _delitem(self, cpv):
del self.__db[cpv]