From 7b94c45e16f66d26ca67ff4869e7fbbef16ac69d Mon Sep 17 00:00:00 2001 From: Kodi Arfer Date: Thu, 20 Jul 2017 08:45:20 -0700 Subject: [PATCH 1/2] Remove an extra parenthesis in hy.contrib.profile --- hy/contrib/profile.hy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hy/contrib/profile.hy b/hy/contrib/profile.hy index 42ef1a4..f155968 100644 --- a/hy/contrib/profile.hy +++ b/hy/contrib/profile.hy @@ -10,7 +10,7 @@ `(do (import [pycallgraph [PyCallGraph]] [pycallgraph.output [GraphvizOutput]]) - (with* [(PyCallGraph :output (GraphvizOutput)))] + (with* [(PyCallGraph :output (GraphvizOutput))] ~@body))) From eea8cf1061d93c58249cedf130dfd91005761fdd Mon Sep 17 00:00:00 2001 From: Kodi Arfer Date: Thu, 20 Jul 2017 08:46:06 -0700 Subject: [PATCH 2/2] hy-repr: Fix a crash when given a NumPy array --- hy/contrib/hy_repr.hy | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hy/contrib/hy_repr.hy b/hy/contrib/hy_repr.hy index ea67efc..195e271 100644 --- a/hy/contrib/hy_repr.hy +++ b/hy/contrib/hy_repr.hy @@ -80,9 +80,9 @@ (.rstrip (repr x) "L") (and (in t [float HyFloat]) (isnan x)) "NaN" - (= x Inf) + (and (in t [float HyFloat]) (= x Inf)) "Inf" - (= x -Inf) + (and (in t [float HyFloat]) (= x -Inf)) "-Inf" (in t [complex HyComplex]) (.replace (.replace (.strip (repr x) "()") "inf" "Inf") "nan" "NaN")