#18104 closed Bug (fixed)
python_markdown_deprecation incorrectly formed
Reported by: | Roy Smith | Owned by: | Claude Paroz |
---|---|---|---|
Component: | contrib.markup | Version: | 1.4 |
Severity: | Normal | Keywords: | |
Cc: | Triage Stage: | Accepted | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | yes | UI/UX: | no |
Description
In /contrib/markup/templatetags/markup.py, this code is incorrect:
python_markdown_deprecation = "The use of Python-Markdown " "< 2.1 in Django is deprecated; please update to the current version"
I suspect you were attempting to use string concatenation, but what you've got is two statements, one assigning a string, the next consisting of just a string. This results in:
[...]/markup.py:83: DeprecationWarning: The use of Python-Markdown warnings.warn(python_markdown_deprecation, DeprecationWarning)
Attachments (1)
Change History (5)
comment:1 by , 13 years ago
Owner: | changed from | to
---|---|
Status: | new → assigned |
Triage Stage: | Unreviewed → Accepted |
by , 13 years ago
Attachment: | 18104.diff added |
---|
comment:2 by , 13 years ago
Has patch: | set |
---|
Note:
See TracTickets
for help on using tickets.
Patch