summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2009-03-07 19:10:20 +0000
committerZac Medico <zmedico@gentoo.org>2009-03-07 19:10:20 +0000
commitde83c76040a64a4f4997ce70214fa3f44c411695 (patch)
tree84779ced7a2ddd3039035dfd31ca50dd5cd601b4
parentb78a398514967548027805fbb77163c3b94cd4f7 (diff)
downloadportage-de83c76040a64a4f4997ce70214fa3f44c411695.tar.gz
portage-de83c76040a64a4f4997ce70214fa3f44c411695.tar.bz2
portage-de83c76040a64a4f4997ce70214fa3f44c411695.zip
Allow unicode type values in config.__setitem__(). Thanks to Arfrever Frehtes
Taifersar Arahesis for this patch. svn path=/main/trunk/; revision=12774
-rw-r--r--pym/portage/__init__.py2
1 files changed, 1 insertions, 1 deletions
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]