From e009a0de929080eba78bb7fa0731a500a9289e88 Mon Sep 17 00:00:00 2001 From: Edward Powell Date: Mon, 15 Dec 2014 20:10:03 -0500 Subject: [PATCH] Use right stacklevel for deprecation warning --- willie/tools.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/willie/tools.py b/willie/tools.py index 975190a1e5..abf2c2820b 100644 --- a/willie/tools.py +++ b/willie/tools.py @@ -279,8 +279,9 @@ def get_command_regexp(prefix, command): def deprecate_for_5(thing): - warnings.warn(thing + 'will be removed in Willie 5.0. Please see ' - 'http://willie.dftba.net/willie_5.html for more info.') + warnings.warn(thing + ' will be removed in Willie 5.0. Please see ' + 'http://willie.dftba.net/willie_5.html for more info.', + stacklevel=3) def deprecated_5(old):