summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYu-Jie Lin <livibetter@gmail.com>2013-08-18 14:53:48 +0800
committerYu-Jie Lin <livibetter@gmail.com>2013-08-18 14:53:48 +0800
commit4d28166cae3eec1aec8e6f6f78aa25ee4f3d1cbd (patch)
tree01cfac3f9d90664402f55ae99c385b5c5ee06e20
parent6cb3c2168e537df23ab13dcde54d523c1c8fb39c (diff)
downloadsmartypants-4d28166cae3eec1aec8e6f6f78aa25ee4f3d1cbd.tar.gz
fix deprecation warning for smartyPants()
-rwxr-xr-xsmartypants.py3
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)