From 95f94742e816477ae3ac5c85f17c2b5c88114433 Mon Sep 17 00:00:00 2001 From: Milan Bouchet-Valat Date: Tue, 26 Dec 2017 22:54:08 +0100 Subject: [PATCH] Undeprecate textwidth (only on Julia < 0.7-DEV.2915) (#437) 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. --- src/deprecated.jl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/deprecated.jl b/src/deprecated.jl index 6bd78cfe1..f496756a5 100644 --- a/src/deprecated.jl +++ b/src/deprecated.jl @@ -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