From 4432c00c591318ea272382439c8221dfefc18249 Mon Sep 17 00:00:00 2001 From: Abhishek L Date: Mon, 3 Feb 2014 21:48:30 +0530 Subject: [PATCH] Replace forgotten instances of coll? function Replacing coll? wherever applicable --- hy/core/language.hy | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hy/core/language.hy b/hy/core/language.hy index 520d3f1..35940bc 100644 --- a/hy/core/language.hy +++ b/hy/core/language.hy @@ -110,7 +110,7 @@ (defn fake-source-positions [tree] "Fake the source positions for a given tree" - (if (and (iterable? tree) (not (string? tree))) + (if (coll? tree) (for* [subtree tree] (fake-source-positions subtree))) (for* [attr '[start-line end-line start-column end-column]] @@ -131,7 +131,7 @@ (raise (TypeError (.format "{0!r} is not a collection" coll))))) (defn _flatten [coll result] - (if (and (iterable? coll) (not (string? coll))) + (if (coll? coll) (do (for* [b coll] (_flatten b result))) (.append result coll))