Skip to content

Commit

Permalink
Do not initialize deprecation data if impossible
Browse files Browse the repository at this point in the history
  • Loading branch information
TotalVerb committed May 3, 2017
1 parent 388012a commit a71e52a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/knowndeprec.jl
Expand Up @@ -10,7 +10,11 @@ end
const deprecates = Dict{Symbol, Vector{DeprecateInfo}}()

function initDeprecateInfo()
str = open(readstring, Base.find_source_file("deprecated.jl"))
sf = Base.find_source_file("deprecated.jl")
if sf === nothing
return
end
str = open(readstring, sf)
linecharc = cumsum(map(x->length(x)+1, @compat(split(str, "\n", keep=true))))

i = start(str)
Expand Down

0 comments on commit a71e52a

Please sign in to comment.