aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndré Erdmann <dywi@mailerd.de>2013-12-11 18:57:57 +0100
committerAndré Erdmann <dywi@mailerd.de>2013-12-11 18:57:57 +0100
commit326a51e15095d3062f0e6b4b39ea27b247324ea9 (patch)
treecf03bf955c42d6059792ab91f1ea716c7c3f237e /roverlay/util
parentroverlay/strutil: foreach_str() (diff)
downloadR_overlay-326a51e15095d3062f0e6b4b39ea27b247324ea9.tar.gz
R_overlay-326a51e15095d3062f0e6b4b39ea27b247324ea9.tar.bz2
R_overlay-326a51e15095d3062f0e6b4b39ea27b247324ea9.zip
fix potential scope issues
Cython complained about the old constructs.
Diffstat (limited to 'roverlay/util')
-rw-r--r--roverlay/util/ebuildparser.py10
1 files changed, 3 insertions, 7 deletions
diff --git a/roverlay/util/ebuildparser.py b/roverlay/util/ebuildparser.py
index 3da58d9..2ce8d9f 100644
--- a/roverlay/util/ebuildparser.py
+++ b/roverlay/util/ebuildparser.py
@@ -147,13 +147,9 @@ class EbuildParser ( object ):
if self.unquote_value:
return {
- varname: (
- roverlay.strutil.unquote ( value ) if isinstance ( value, str )
- else list (
- roverlay.strutil.unquote ( item ) for item in value
- )
- )
- for varname, value in data.items()
+ varname: roverlay.strutil.str_foreach (
+ roverlay.strutil.unquote, value
+ ) for varname, value in data.items()
}
else:
return data