From: Kamalesh Babulal Date: Wed, 23 Feb 2022 09:47:30 +0000 (+0530) Subject: ftests.py: fix double import of log X-Git-Tag: v3.1.0~308^2~2^2~40 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3c343a6b0399cdedf27125215c0c1d84575c845f;p=thirdparty%2Flibcgroup.git ftests.py: fix double import of log 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 Signed-off-by: Tom Hromatka --- diff --git a/ftests/ftests.py b/ftests/ftests.py index aaa49dcd..b2177bfd 100755 --- a/ftests/ftests.py +++ b/ftests/ftests.py @@ -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")