Skip to content

Commit

Permalink
Fix @textmime depwarn message
Browse files Browse the repository at this point in the history
  • Loading branch information
TotalVerb committed Sep 14, 2016
1 parent 9aac555 commit 6c066c3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions base/deprecated.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1001,9 +1001,9 @@ export @vectorize_1arg, @vectorize_2arg

# Deprecate @textmime into the Multimedia module, #18441
eval(Multimedia, :(macro textmime(mime)
Base.depwarn(string("`@textmime mime` is deprecated; use ",
"`Base.Multimedia.mimetypetype(::MIME{mime}) = ",
"Base.Multimedia.IsText` instead."), :textmime)
Base.depwarn(string("`@textmime \"mime\"` is deprecated; use ",
"`Base.Multimedia.istextmime(::MIME\"mime\") = true` instead"
), :textmime)
quote
Base.Multimedia.istextmime(::MIME{$(Meta.quot(Symbol(mime)))}) = true
end
Expand Down

0 comments on commit 6c066c3

Please sign in to comment.