Ugh, Python 3 map objects

This commit is contained in:
Jeff Forcier 2013-12-22 16:54:02 -08:00
parent 09c2f1b3a1
commit 039359d0f0

View file

@ -182,7 +182,9 @@ def construct_releases(entries, app):
line = get_line(focus)
log("release for line %r" % line)
# Check for explicitly listed issues first
explicit = map(str.strip, rest[0].split(',')) if rest else None
explicit = None
if rest:
explicit = list(map(str.strip, rest[0].split(',')))
# Do those by themselves since they override all other logic
if explicit:
log("Explicit issues requested: %r" % (explicit,))