mirror of
https://github.com/django/django.git
synced 2025-01-04 07:26:38 +00:00
55022f75c1
Despite inheriting from the str type, every SafeString instance gains an empty __dict__ due to the normal, expected behaviour of type subclassing in Python. Adding __slots__ to SafeData is necessary, because otherwise inheriting from that (as SafeString does) will give it a __dict__ and negate the benefit added by modifying SafeString. |
||
---|---|---|
.. | ||
archives | ||
eggs | ||
files | ||
test_module | ||
traversal_archives | ||
__init__.py | ||
deconstructible_classes.py | ||
models.py | ||
test_archive.py | ||
test_autoreload.py | ||
test_baseconv.py | ||
test_connection.py | ||
test_crypto.py | ||
test_datastructures.py | ||
test_dateformat.py | ||
test_dateparse.py | ||
test_datetime_safe.py | ||
test_deconstruct.py | ||
test_decorators.py | ||
test_duration.py | ||
test_encoding.py | ||
test_feedgenerator.py | ||
test_functional.py | ||
test_hashable.py | ||
test_html.py | ||
test_http.py | ||
test_inspect.py | ||
test_ipv6.py | ||
test_jslex.py | ||
test_lazyobject.py | ||
test_lorem_ipsum.py | ||
test_module_loading.py | ||
test_no_submodule.py | ||
test_numberformat.py | ||
test_os_utils.py | ||
test_regex_helper.py | ||
test_safestring.py | ||
test_simplelazyobject.py | ||
test_termcolors.py | ||
test_text.py | ||
test_timesince.py | ||
test_timezone.py | ||
test_topological_sort.py | ||
test_tree.py | ||
utils.py |