Skip to content

Commit c703960

Browse files
author
Christopher Doris
committed
disjoint colours
1 parent 7f63664 commit c703960

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/PyException.jl

+3
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,9 @@ function Base.showerror(io::IO, e::PyException)
192192
else
193193
mcdict = Dict{String, Symbol}()
194194
mccyclyer = Iterators.Stateful(Iterators.cycle(Base.STACKTRACE_MODULECOLORS))
195+
# skip a couple as a basic attempt to make the colours different from the Julia stacktrace
196+
popfirst!(mccyclyer)
197+
popfirst!(mccyclyer)
195198
for (i, (name, fname, lineno)) in enumerate(reverse(fs))
196199
println(io)
197200
printstyled(io, " [", i, "] ")

0 commit comments

Comments
 (0)