Debian Patches

Status for djangorestframework/3.15.2-2

Patch Description Author Forwarded Bugs Origin Last update
Clean-all-privacy-breaches-in-the-package.patch Clean all privacy breaches in the package =?utf-8?q?Pierre-Elliott_B=C3=A9cue?= <becue@crans.org> not-needed 2018-03-12
Fix-asset-names-to-match-symlinks-to-packaged-files.patch Fix asset names to match symlinks to packaged files. Michael Fladischer <FladischerMichael@fladi.at> not-needed 2020-07-04
py313.patch Fix view description inspection in Python 3.13
Python 3.13 introduced docstrings for None: https://github.com/python/cpython/pull/117813

In Python 3.12, this is an empty string:

```
➜ python3.12
Python 3.12.6 (main, Sep 10 2024, 19:06:17) [Clang 15.0.0 (clang-1500.3.9.4)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> d = None
>>> d.__doc__
>>>
```

In Python 3.13, it's no longer empty:

```
➜ python3.13
Python 3.13.0rc2+ (heads/3.13:660baa1, Sep 10 2024, 18:57:50) [Clang 15.0.0 (clang-1500.3.9.4)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> d = None
>>> d.__doc__
'The type of the None singleton.'
>>>
```

Adding a check in the inspector that get the view description out the view function docstring to catch this edge case.
Bruno Alla <alla.brunoo@gmail.com> no debian upstream, https://github.com/encode/django-rest-framework/pull/9527/commits/d327354b106dcb132f10e2f0698d8ce1126006b8 2024-12-03

All known versions for source package 'djangorestframework'

Links