0058-misc-fix-not-context-manager-pylint-error-62099.patch
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 |
- |