projects
/
portage.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b9fa198
)
Bug #286475 - Fix KeyValuePairFileLoader.lineParser() so it doesn't raise
author
Zac Medico
<zmedico@gentoo.org>
Sat, 26 Sep 2009 07:32:58 +0000
(07:32 -0000)
committer
Zac Medico
<zmedico@gentoo.org>
Sat, 26 Sep 2009 07:32:58 +0000
(07:32 -0000)
AttributeError when a key/value is redefined.
svn path=/main/trunk/; revision=14435
pym/portage/env/loaders.py
patch
|
blob
|
history
diff --git
a/pym/portage/env/loaders.py
b/pym/portage/env/loaders.py
index 60e0e1b11ede3f66b4243f15e77abf9d5320c341..0dc4d75beddb5948fc476dbe2fd9ee6ce8d47c7d 100644
(file)
--- a/
pym/portage/env/loaders.py
+++ b/
pym/portage/env/loaders.py
@@
-317,7
+317,4
@@
class KeyValuePairFileLoader(FileLoader):
_("Value validation failed at line: %s, data %s")
% (line_num + 1, value))
return
- if key in data:
- data[key].append(value)
- else:
- data[key] = value
+ data[key] = value