Merge pull request #1329 from Kodiologist/quickfix

Two small bugfixes
This commit is contained in:
Ryan Gonzalez 2017-07-23 21:23:54 -05:00 committed by GitHub
commit 260fbcc517
2 changed files with 3 additions and 3 deletions

View File

@ -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")

View File

@ -10,7 +10,7 @@
`(do
(import [pycallgraph [PyCallGraph]]
[pycallgraph.output [GraphvizOutput]])
(with* [(PyCallGraph :output (GraphvizOutput)))]
(with* [(PyCallGraph :output (GraphvizOutput))]
~@body)))