From 81a6ceab4e0eda4238d38513a83e430ea9783d9d Mon Sep 17 00:00:00 2001 From: Dmitry Shachnev Date: Fri, 20 Feb 2015 13:18:15 +0300 Subject: 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'. --- markdown/__init__.py | 4 ++-- 1 file 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. ' -- cgit v1.2.3