aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDmitry Shachnev <mitya57@gmail.com>2015-02-20 13:18:15 +0300
committerDmitry Shachnev <mitya57@gmail.com>2015-02-20 13:22:33 +0300
commit81a6ceab4e0eda4238d38513a83e430ea9783d9d (patch)
tree2f7ee0e875c9fc305a9875572714e8d2d8d68506
parent0d81a0b5272421a8174ea834017b11078b16e5e3 (diff)
downloadmarkdown-81a6ceab4e0eda4238d38513a83e430ea9783d9d.tar.gz
markdown-81a6ceab4e0eda4238d38513a83e430ea9783d9d.tar.bz2
markdown-81a6ceab4e0eda4238d38513a83e430ea9783d9d.zip
Fix formatting DeprecationWarning messages.
Without the space, Python joins the lines and it produces results like 'Positional arguments are depreacted in MarkdownUse keyword arguments only'.
-rw-r--r--markdown/__init__.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/markdown/__init__.py b/markdown/__init__.py
index 107f702..a136ed1 100644
--- a/markdown/__init__.py
+++ b/markdown/__init__.py
@@ -121,7 +121,7 @@ class Markdown(object):
# ignore any additional args
break
if len(args):
- warnings.warn('Positional arguments are depreacted in Markdown'
+ warnings.warn('Positional arguments are deprecated in Markdown. '
'Use keyword arguments only.',
DeprecationWarning)
@@ -135,7 +135,7 @@ class Markdown(object):
self.enable_attributes = False
if 'safe_mode' in kwargs:
- warnings.warn('"safe_mode" is deprecated in Python-Markdown'
+ warnings.warn('"safe_mode" is deprecated in Python-Markdown. '
'Use an HTML sanitizer (like '
'Bleach http://bleach.readthedocs.org/) '
'if you are parsing untrusted markdown text. '