From abdae9134752155162673cfee858ebe394cdaa54 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Wed, 11 Mar 2009 06:46:26 +0000 Subject: [PATCH] Allow unicode type values in config.__setitem__(). Thanks to Arfrever Frehtes Taifersar Arahesis for this patch. (trunk r12774) svn path=/main/branches/2.1.6/; revision=13018 --- 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 7a3a9f270..b59c16f20 100644 --- a/pym/portage/__init__.py +++ b/pym/portage/__init__.py @@ -2962,7 +2962,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