summaryrefslogtreecommitdiffstats
path: root/pym
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2009-03-11 06:46:26 +0000
committerZac Medico <zmedico@gentoo.org>2009-03-11 06:46:26 +0000
commitabdae9134752155162673cfee858ebe394cdaa54 (patch)
tree63fdb01584e3ddc31d45ab6681a538a65a929b5c /pym
parentc9590f5294c47da6689836ec6b24c9b9938a9207 (diff)
downloadportage-abdae9134752155162673cfee858ebe394cdaa54.tar.gz
portage-abdae9134752155162673cfee858ebe394cdaa54.tar.bz2
portage-abdae9134752155162673cfee858ebe394cdaa54.zip
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
Diffstat (limited to 'pym')
-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 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]