summaryrefslogtreecommitdiff
path: root/portato
diff options
context:
space:
mode:
Diffstat (limited to 'portato')
-rw-r--r--portato/eix/parser.pyx6
1 files changed, 1 insertions, 5 deletions
diff --git a/portato/eix/parser.pyx b/portato/eix/parser.pyx
index d791bf0..01a673f 100644
--- a/portato/eix/parser.pyx
+++ b/portato/eix/parser.pyx
@@ -122,11 +122,7 @@ def vector (file, get_type, nelems = None):
else:
n = nelems
- l = []
- for i in range(n):
- l.append(get_type(file))
-
- return l
+ return [get_type(file) for i in range(n)]
def string (file):
"""