tigten that code up a skitch

This commit is contained in:
Paul R. Tagliamonte 2013-04-02 21:00:50 -04:00
parent 4e7362848a
commit 9c3142f752

View File

@ -353,9 +353,7 @@ class HyASTCompiler(object):
tar_it = iter(expr.pop(0))
targets = zip(tar_it, tar_it)
cond = None
if expr != []:
cond = self.compile(expr.pop(0))
cond = self.compile(expr.pop(0)) if expr != [] else None
ret = ast.ListComp(
lineno=expr.start_line,