Development #59791
suppression de 2 warnings
Début:
16 décembre 2021
Echéance:
% réalisé:
0%
Temps estimé:
Patch proposed:
Oui
Planning:
Non
Description
passerelle/settings.py:269: ResourceWarning: unclosed file <_io.TextIOWrapper name='tests/settings.py' mode='r' encoding='UTF-8'> exec(open(local_settings_file).read())
DeprecationWarning: inspect.getargspec() is deprecated since Python 3.0, use inspect.signature() or inspect.getfullargspec()
cf https://docs.python.org/3/library/inspect.html
Deprecated since version 3.0: Use getfullargspec() for an updated API that is usually a drop-in replacement, but also correctly handles function annotations and keyword-only parameters.
Fichiers
Demandes liées
Révisions associées
misc: replace deprecated inspect.getargspec with getfullargspec (#59791)
Historique
Mis à jour par Nicolas Roche il y a plus de 2 ans
- Fichier 0002-misc-replace-deprecated-inspect.getargspec-with-getf.patch 0002-misc-replace-deprecated-inspect.getargspec-with-getf.patch ajouté
- Fichier 0001-settings-remove-warning-unclosed-file-59791.patch 0001-settings-remove-warning-unclosed-file-59791.patch ajouté
- Statut changé de Nouveau à Solution proposée
- Patch proposed changé de Non à Oui
Mis à jour par Thomas Noël il y a plus de 2 ans
- Statut changé de Solution proposée à Solution validée
Pour 0001 il faudrait le faire partout sur nos autres softs, en fait.
Mis à jour par Nicolas Roche il y a plus de 2 ans
- Statut changé de Solution validée à Résolu (à déployer)
commit b8af96376de155679d18f149192a9635562b0edc Author: Nicolas ROCHE <nroche@entrouvert.com> Date: Thu Dec 16 11:58:53 2021 +0100 misc: replace deprecated inspect.getargspec with getfullargspec (#59791) commit 54144f78b44aa40f093e200ec8d546367ec26569 Author: Nicolas ROCHE <nroche@entrouvert.com> Date: Thu Dec 16 11:58:39 2021 +0100 settings: remove warning unclosed file (#59791)
Mis à jour par Frédéric Péters il y a plus de 2 ans
- Statut changé de Résolu (à déployer) à Solution déployée
Mis à jour par Nicolas Roche il y a environ 2 ans
- Lié à Development #61976: Fermer le fichier des settings locaux ajouté
Mis à jour par Nicolas Roche il y a environ 2 ans
- Lié à Development #61977: Fermer le fichier des settings locaux ajouté
Mis à jour par Nicolas Roche il y a environ 2 ans
Pour 0001 il faudrait le faire partout sur nos autres softs, en fait.
Je pense avoir fait le tour, mais j'ai laissé de côté welco, auquotidien et corbo.
settings: remove warning unclosed file (#59791)