From: Zac Medico Date: Mon, 21 Sep 2009 20:50:59 +0000 (-0000) Subject: In _unicode_func_wrapper, only encode keyword argument values, and not the X-Git-Tag: v2.2_rc42~58 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=7770a56f19e51eb9f74cbd4efe472fcf126571e9;p=portage.git In _unicode_func_wrapper, only encode keyword argument values, and not the keys. svn path=/main/trunk/; revision=14366 --- diff --git a/pym/portage/__init__.py b/pym/portage/__init__.py index 10e51983a..b0b80449a 100644 --- a/pym/portage/__init__.py +++ b/pym/portage/__init__.py @@ -182,8 +182,7 @@ class _unicode_func_wrapper(object): for x in args] if kwargs: wrapped_kwargs = dict( - (_unicode_encode(k, encoding=encoding, errors='strict'), - _unicode_encode(v, encoding=encoding, errors='strict')) + (k, _unicode_encode(v, encoding=encoding, errors='strict')) for k, v in kwargs.items()) else: wrapped_kwargs = {}