Skip to content

Commit

Permalink
Undeprecate textwidth (only on Julia < 0.7-DEV.2915) (#437)
Browse files Browse the repository at this point in the history
That's a perfectly valid call on Julia 0.6, so it is annoying to make it
print warnings there suddenly for packages which previously worked fine.
Packages will progressively stop using it when being ported to 0.7: we
can simply rely on the deprecation provided by Julia itself.
  • Loading branch information
nalimilan authored and ararslan committed Dec 26, 2017
1 parent 747b75d commit 95f9474
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/deprecated.jl
Original file line number Diff line number Diff line change
Expand Up @@ -190,5 +190,6 @@ else
end

if VERSION < v"0.7.0-DEV.2915"
Base.@deprecate textwidth Compat.Unicode.textwidth
const textwidth = Compat.Unicode.textwidth
export textwidth
end

0 comments on commit 95f9474

Please sign in to comment.