diff options
| author | Keryn Knight <keryn@kerynknight.com> | 2022-01-25 09:53:03 +0000 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2022-01-29 13:50:34 +0100 |
| commit | 55022f75c1e76e92206e023a127532d97cedd5b7 (patch) | |
| tree | 18bf8e2360c74fe8ca5737a901379bd23f148dd7 /docs | |
| parent | 67db54a5a7e0f1c2aa395e1db51214d09ae41f3f (diff) | |
Fixed #33465 -- Added empty __slots__ to SafeString and SafeData.
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.
Diffstat (limited to 'docs')
0 files changed, 0 insertions, 0 deletions
