Skip to content

Commit

Permalink
Fix formatting DeprecationWarning messages.
Browse files Browse the repository at this point in the history
Without the space, Python joins the lines and it produces results like
'Positional arguments are depreacted in MarkdownUse keyword arguments only'.
  • Loading branch information
mitya57 committed Feb 20, 2015
1 parent 0d81a0b commit 81a6cea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions markdown/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ def __init__(self, *args, **kwargs):
# 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)

Expand All @@ -135,7 +135,7 @@ def __init__(self, *args, **kwargs):
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. '
Expand Down

0 comments on commit 81a6cea

Please sign in to comment.