Use compat for abstract types

pull/71/merge
Matti Pastell 2017-03-10 10:25:09 +02:00
parent c788f5f15e
commit 868efa8208
4 changed files with 5 additions and 5 deletions

View File

@ -6,3 +6,4 @@ Highlights
Mustache
Documenter
YAML
Compat 0.17.0

View File

@ -1,6 +1,7 @@
using Compat
abstract WeaveChunk
abstract Inline
@compat abstract type WeaveChunk end
@compat abstract type Inline end
type WeaveDoc
source::AbstractString

View File

@ -30,7 +30,6 @@ function Base.display(report::Report, data)
#Set preferred mimetypes for report based on format
for m in report.mimetypes
if mimewritable(m, data)
info(data)
try
display(report, m, data)
catch

View File

@ -213,9 +213,8 @@ function run_code(chunk::CodeChunk, report::Report, SandBox::Module)
if rcParams[:plotlib] == "PyPlot"
#Work around "old world"
(@eval savep1(x) = savefigs_pyplot(x))
savep2(x) = eval(Expr(:call, function() savep1( x ) end))
savep2(x) = eval(Expr(:call, function() savep1(x) end))
savep2(report)
#savep(report)
end
return results