diff options
author | Zac Medico <zmedico@gentoo.org> | 2012-05-24 12:06:11 -0700 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2012-05-24 12:06:11 -0700 |
commit | cd0285b567b307ae04435aa342f40714d2ed6ac3 (patch) | |
tree | f17d06f042d86994c8eff5845169079ce50d0639 | |
parent | d0ed9b0120792841dffd3d0ae7b3306e0f1d1583 (diff) | |
download | portage-cd0285b567b307ae04435aa342f40714d2ed6ac3.tar.gz portage-cd0285b567b307ae04435aa342f40714d2ed6ac3.tar.bz2 portage-cd0285b567b307ae04435aa342f40714d2ed6ac3.zip |
reconstruct_eclasses: unicode hashes for python2v2.2.0_alpha108
-rw-r--r-- | pym/portage/cache/template.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/pym/portage/cache/template.py b/pym/portage/cache/template.py index 0ab6e0a1f..cf1e8aebb 100644 --- a/pym/portage/cache/template.py +++ b/pym/portage/cache/template.py @@ -1,4 +1,4 @@ -# Copyright: 2005 Gentoo Foundation +# Copyright: 2005-2012 Gentoo Foundation # Author(s): Brian Harring (ferringb@gentoo.org) # License: GPL2 @@ -10,8 +10,11 @@ import warnings import operator if sys.hexversion >= 0x3000000: + _unicode = str basestring = str long = int +else: + _unicode = unicode class database(object): # this is for metadata/cache transfer. @@ -273,7 +276,7 @@ def reconstruct_eclasses(cpv, eclass_string, chf_type='mtime', paths=True): # occasionally this occurs in the fs backends. they suck. return {} - converter = str + converter = _unicode if chf_type == 'mtime': converter = long |