util.deprecate_class: use raw=true always (#1564)

Fixes

> W: awful: function margin is deprecated, see wibox.layout.margin has been renamed to wibox.container.margin.

to

> W: wibox.layout.margin has been renamed to wibox.container.margin.
This commit is contained in:
Daniel Hahler 2017-02-15 19:45:23 +01:00 committed by GitHub
parent eb6a773449
commit 52011a68e1
1 changed files with 2 additions and 2 deletions

View File

@ -74,13 +74,13 @@ function util.deprecate_class(fallback, old_name, new_name)
local message = old_name.." has been renamed to "..new_name local message = old_name.." has been renamed to "..new_name
local function call(_,...) local function call(_,...)
util.deprecate(message) util.deprecate(message, {raw = true})
return fallback(...) return fallback(...)
end end
local function index(_, k) local function index(_, k)
util.deprecate(message) util.deprecate(message, {raw = true})
return fallback[k] return fallback[k]
end end