Projet

Général

Profil

0058-misc-fix-not-context-manager-pylint-error-62099.patch

Lauréline Guérin, 22 mars 2022 10:31

Télécharger (884 octets)

Voir les différences:

Subject: [PATCH 58/65] misc: fix not-context-manager pylint error (#62099)

 passerelle/apps/sp_fr/models.py | 1 +
 1 file changed, 1 insertion(+)
passerelle/apps/sp_fr/models.py
700 700
        # contextmanager, __enter__ does not re-open/re-seek(0) it :/
701 701
        self.archive.open()
702 702

  
703
        # pylint: disable=not-context-manager
703 704
        with self.archive as fd:
704 705
            with zipfile.ZipFile(fd) as archive:
705 706
                with archive.open('message.xml') as message_xml_fd:
706
-