2
0
mirror of https://gitlab.com/apparmor/apparmor synced 2025-08-22 01:57:43 +00:00
Christian Boltz c0b5d90848 Merge Resolve "Python: Ensure opened files are closed."
This MR closes #239. In the temporary file commit, `tempfile.NamedTemporaryFile` is preferred over `tempfile.mkstemp` because it allows for simpler use of context managers and lets you choose what mode to open the file in. Also in this commit, note that in `aa.py` and `easyprof.py` destination files are now written directly, instead of writing to temp files and then renaming them.

Closes #239
MR: https://gitlab.com/apparmor/apparmor/-/merge_requests/898
Approved-by: Christian Boltz <apparmor@cboltz.de>
Merged-by: Christian Boltz <apparmor@cboltz.de>
2022-07-20 19:34:16 +00:00
..
2022-07-19 20:32:03 -04:00
2022-06-29 20:41:38 -04:00
2020-10-29 21:24:15 +01:00
2020-10-29 21:24:15 +01:00
2020-10-29 21:24:15 +01:00
2020-10-29 21:24:15 +01:00
2020-10-29 21:24:15 +01:00
2016-10-01 20:57:09 +02:00
2020-10-29 21:24:15 +01:00
2022-02-21 22:52:14 +01:00
2022-06-18 16:14:45 -04:00
2016-10-01 20:57:09 +02:00
2022-06-29 20:41:38 -04:00

Known Bugs: Will allow multiple letters in the () due to translation/unicode issues with regexing the key. User input will probably bug out in a different locale.