]> git.ipfire.org Git - thirdparty/libcgroup.git/commitdiff
ftests.py: fix double import of log
authorKamalesh Babulal <kamalesh.babulal@oracle.com>
Wed, 23 Feb 2022 09:47:30 +0000 (15:17 +0530)
committerTom Hromatka <tom.hromatka@oracle.com>
Thu, 24 Feb 2022 15:08:53 +0000 (08:08 -0700)
Fix double import, 'import log' and 'from log import Log'. The reason to
do so is to access the global variable from the log package. This patch
uses only 'import log' that will work for both accessing the global
variables and Class Log functions.

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

index aaa49dcd2078ea788465d31bce4715723f327bcc..b2177bfd1aec830e6e7193c44a460b525a4fd36e 100755 (executable)
@@ -21,7 +21,6 @@
 #
 
 from config import Config
-from log import Log
 from run import Run
 import datetime
 import argparse
@@ -34,6 +33,8 @@ import os
 setup_time = 0.0
 teardown_time = 0.0
 
+Log = log.Log
+
 
 def parse_args():
     parser = argparse.ArgumentParser("Libcgroup Functional Tests")