Kaydet (Commit) bbff3147 authored tarafından Matthew Schinckel's avatar Matthew Schinckel Kaydeden (comit) Markus Holtermann

Made flatatt docstring match reality

The spirit of the docstring was correct, but referred to an outdated version of the function.
üst 788071e2
...@@ -20,10 +20,12 @@ def flatatt(attrs): ...@@ -20,10 +20,12 @@ def flatatt(attrs):
""" """
Convert a dictionary of attributes to a single string. Convert a dictionary of attributes to a single string.
The returned string will contain a leading space followed by key="value", The returned string will contain a leading space followed by key="value",
XML-style pairs. It is assumed that the keys do not need to be XML-escaped. XML-style pairs. In the case of a boolean value, the key will appear
If the passed dictionary is empty, then return an empty string. without a value. It is assumed that the keys do not need to be
XML-escaped. If the passed dictionary is empty, then return an empty
string.
The result is passed through 'mark_safe'. The result is passed through 'mark_safe' (by way of 'format_html_join').
""" """
key_value_attrs = [] key_value_attrs = []
boolean_attrs = [] boolean_attrs = []
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment