When encoding strings inside vardbapi._counter_hash() and
authorZac Medico <zmedico@gentoo.org>
Mon, 23 Feb 2009 03:12:49 +0000 (03:12 -0000)
committerZac Medico <zmedico@gentoo.org>
Mon, 23 Feb 2009 03:12:49 +0000 (03:12 -0000)
commitb1487ac5dfe57cb16ec4575b7a2a8ac570fc2bc0
treeb6a51a92d148fbdcea75a1bfffffb02f908ee67b
parentaac0840c6a27e87a52c802d7a8d2e9412041cd45
When encoding strings inside  vardbapi._counter_hash() and
vardbapi._owners_cache._hash_str(), use 'backslashreplace' in order to avoid
potential UnicodeError exceptions. Use constant ascii and utf_8 codecs,
respectively, since these codecs are guaranteed to be available by
_ensure_default_encoding().

svn path=/main/trunk/; revision=12689
pym/portage/dbapi/vartree.py