]> git.ipfire.org Git - thirdparty/samba.git/commit
samba-tool gpo: close opened files
authorDouglas Bagnall <douglas.bagnall@catalyst.net.nz>
Fri, 14 Mar 2025 06:47:53 +0000 (19:47 +1300)
committerDouglas Bagnall <dbagnall@samba.org>
Tue, 25 Mar 2025 04:20:45 +0000 (04:20 +0000)
commit9d3a0ffa8a5a5a9438b5b7686d55985c04b1b566
tree94970fccaca7b99127e2cce40ff34888d0674f0b
parent20129d16dc30a2ab9ad0ae04fec5cf007ebb035d
samba-tool gpo: close opened files

It is almost certain that we are not going to run out of files, as
they get garbage collected anyway, but in some circumstances these can
fill your screen with "ResourceWarning: unclosed file" messages, which
hides the real messages.

Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Jennifer Sutton <jennifersutton@catalyst.net.nz>
python/samba/netcmd/gpo.py