Re: [PATCH] tests: test_fst_config: convert FstLauncher to context manager

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, May 11, 2021 at 09:35:47PM +0200, Johannes Berg wrote:
> Using __del__ for any kind of cleanup is not a good idea
> as it's not guaranteed to be called at any particular time,
> it's only called whenever the next garbage collect cycle
> kicks in.
> 
> Use a context manager instead, which basically removes the
> need for the try/finally and fixes the reliance on __del__.

Thanks, applied.
 
-- 
Jouni Malinen                                            PGP id EFC895FA

_______________________________________________
Hostap mailing list
Hostap@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/hostap



[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux