diff options
| author | 2020-06-11 22:51:07 -0700 | |
|---|---|---|
| committer | 2020-06-13 14:35:14 -0700 | |
| commit | 17f6ed8b042e21ece635e46fce410736b7db9c6b (patch) | |
| tree | 3d2ede195fa4492cd38280189d04458287a1338c /tools/warn/cpp_warn_patterns.py | |
| parent | a973323a9d6979f0c8cf510caca6dd80504055e9 (diff) | |
Fix the read on a closed zipfile
When calculating the dynamic fingerprints, we need to reopen the
input file if it's a ZipFile. Because the original object has been
closed, as its scope ends after the with statement.
Bug: 152167826
Test: generate an OTA package with zip input and overrides
Change-Id: I623da3cc5fcc91c6230fb5a6e86517ed995913b7
(cherry picked from commit eb06afb602a95668ae401a62295282ee18be516c)
Diffstat (limited to 'tools/warn/cpp_warn_patterns.py')
0 files changed, 0 insertions, 0 deletions