diff options
author | Yu-Jie Lin <livibetter@gmail.com> | 2013-08-18 14:53:48 +0800 |
---|---|---|
committer | Yu-Jie Lin <livibetter@gmail.com> | 2013-08-18 14:53:48 +0800 |
commit | 4d28166cae3eec1aec8e6f6f78aa25ee4f3d1cbd (patch) | |
tree | 01cfac3f9d90664402f55ae99c385b5c5ee06e20 /smartypants.py | |
parent | 6cb3c2168e537df23ab13dcde54d523c1c8fb39c (diff) | |
download | smartypants-4d28166cae3eec1aec8e6f6f78aa25ee4f3d1cbd.tar.gz |
fix deprecation warning for smartyPants()
Diffstat (limited to 'smartypants.py')
-rwxr-xr-x | smartypants.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/smartypants.py b/smartypants.py index 049ace8..9185e80 100755 --- a/smartypants.py +++ b/smartypants.py @@ -154,7 +154,8 @@ def _str_attr_to_int(str_attr): def smartyPants(text, attr=None): - msg = 'smartyPants() will be removed at Version 2.0.0, use smartypants()' + msg = ('smartyPants function will be removed at Version 2.0.0, ' + 'use smartypants, instead') warnings.filterwarnings('once', msg, DeprecationWarning) warnings.warn(msg, DeprecationWarning) |