tigten that code up a skitch
This commit is contained in:
parent
4e7362848a
commit
9c3142f752
@ -353,9 +353,7 @@ class HyASTCompiler(object):
|
|||||||
tar_it = iter(expr.pop(0))
|
tar_it = iter(expr.pop(0))
|
||||||
targets = zip(tar_it, tar_it)
|
targets = zip(tar_it, tar_it)
|
||||||
|
|
||||||
cond = None
|
cond = self.compile(expr.pop(0)) if expr != [] else None
|
||||||
if expr != []:
|
|
||||||
cond = self.compile(expr.pop(0))
|
|
||||||
|
|
||||||
ret = ast.ListComp(
|
ret = ast.ListComp(
|
||||||
lineno=expr.start_line,
|
lineno=expr.start_line,
|
||||||
|
Loading…
Reference in New Issue
Block a user