]> git.ipfire.org Git - thirdparty/libcgroup.git/commit
log.py: fix selfimport
authorKamalesh Babulal <kamalesh.babulal@oracle.com>
Wed, 23 Feb 2022 09:38:48 +0000 (15:08 +0530)
committerTom Hromatka <tom.hromatka@oracle.com>
Thu, 24 Feb 2022 15:08:53 +0000 (08:08 -0700)
commitaee2ed3cd0e04fc0bc6564bb16a32c68f5583e90
tree95d7e854215582eed29c277a70caf1d78dbdde38
parent2baa2cbff0dc94acd09abb0af49d9ace1d802701
log.py: fix selfimport

It's not advised to selfimport, i.e import log. To remove this
selfimport, the global variable access needs to be fixed by using
'global' keyword inside the Class methods.

Reported-by: LGTM
Signed-off-by: Kamalesh Babulal <kamalesh.babulal@oracle.com>
Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
ftests/log.py