From 12270ecaa3875945620f3cd5c71078c7d7981cb1 Mon Sep 17 00:00:00 2001 From: Christopher Allan Webber Date: Tue, 23 Dec 2014 14:32:03 -0600 Subject: [PATCH] paultag likes iter(exprs) better than exprs.__iter__() We do what the BDFL says lest he shoot us with magic wizard sticks. --- hy/compiler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hy/compiler.py b/hy/compiler.py index 8313ac0..634ae56 100644 --- a/hy/compiler.py +++ b/hy/compiler.py @@ -444,7 +444,7 @@ class HyASTCompiler(object): ret = Result() keywords = [] - exprs_iter = exprs.__iter__() + exprs_iter = iter(exprs) for expr in exprs_iter: if with_kwargs and isinstance(expr, HyKeyword): try: