summaryrefslogtreecommitdiff
path: root/smartypants.py
diff options
context:
space:
mode:
authorYu-Jie Lin <livibetter@gmail.com>2013-08-12 12:11:07 +0800
committerYu-Jie Lin <livibetter@gmail.com>2013-08-12 12:11:07 +0800
commit3ccc710d62d154cbb75782487cf533b5f4ddf3ae (patch)
treef47be57528fb65c536c8bea618fc9da713407c1f /smartypants.py
parent9cbb19a3e9cba68b474221ea575f9bd410548be5 (diff)
downloadsmartypants-3ccc710d62d154cbb75782487cf533b5f4ddf3ae.tar.gz
deprecate Pyblosxom support
Since no one is going to main the Pyblosxom part of code, it's best for retirement for that. Futuremore, smartypants.py should keep generic rather than binding with specific softwares. It should be very easy to wrap smartypants.py and make a new plugin. The support will be removed at Version 2.0.0
Diffstat (limited to 'smartypants.py')
-rwxr-xr-xsmartypants.py12
1 files changed, 11 insertions, 1 deletions
diff --git a/smartypants.py b/smartypants.py
index a705d9b..78d7ac9 100755
--- a/smartypants.py
+++ b/smartypants.py
@@ -2,7 +2,7 @@
# Copyright (c) 2013 Yu-Jie Lin
# Copyright (c) 2004, 2005, 2007, 2013 Chad Miller
# Copyright (c) 2003 John Gruber
-# For detail license information, See COPYING
+# Licensed under the BSD License, for detailed license information, see COPYING
__author__ = 'Yu-Jie Lin'
__email__ = 'livibetter@gmail.com'
@@ -14,16 +14,26 @@ __description__ = 'Smart-quotes, smart-ellipses, and smart-dashes'
default_smartypants_attr = "1"
import re
+import warnings
tags_to_skip_regex = re.compile('<(/)?(pre|code|kbd|script|math)[^>]*>', re.I)
def verify_installation(request):
+
+ msg = 'Pyblosxom support will be removed at Version 2.0.0'
+ warnings.filterwarnings('once', msg, DeprecationWarning)
+ warnings.warn(msg, DeprecationWarning)
return 1
# assert the plugin is functional
def cb_story(args):
+
+ msg = 'Pyblosxom support will be removed at Version 2.0.0'
+ warnings.filterwarnings('once', msg, DeprecationWarning)
+ warnings.warn(msg, DeprecationWarning)
+
global default_smartypants_attr
try: