From de83c76040a64a4f4997ce70214fa3f44c411695 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Sat, 7 Mar 2009 19:10:20 +0000 Subject: [PATCH] Allow unicode type values in config.__setitem__(). Thanks to Arfrever Frehtes Taifersar Arahesis for this patch. svn path=/main/trunk/; revision=12774 --- pym/portage/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pym/portage/__init__.py b/pym/portage/__init__.py index 83acb0fed..a8d55ca6b 100644 --- a/pym/portage/__init__.py +++ b/pym/portage/__init__.py @@ -2972,7 +2972,7 @@ class config(object): def __setitem__(self,mykey,myvalue): "set a value; will be thrown away at reset() time" - if not isinstance(myvalue, str): + if not isinstance(myvalue, basestring): raise ValueError("Invalid type being used as a value: '%s': '%s'" % (str(mykey),str(myvalue))) self.modifying() self.modifiedkeys += [mykey] -- 2.26.2