BaseTools: Remove equality operator with None
replace "== None" with "is None" and "!= None" with "is not None" Cc: Yonghong Zhu <yonghong.zhu@intel.com> Cc: Liming Gao <liming.gao@intel.com> Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Jaben Carsey <jaben.carsey@intel.com> Reviewed-by: Yonghong Zhu <yonghong.zhu@intel.com>
This commit is contained in:
committed by
Yonghong Zhu
parent
05a32984ab
commit
4231a8193e
@ -90,7 +90,7 @@ def SetLogLevel(Opt):
|
||||
Logger.SetLevel(Logger.VERBOSE)
|
||||
elif Opt.opt_quiet:
|
||||
Logger.SetLevel(Logger.QUIET + 1)
|
||||
elif Opt.debug_level != None:
|
||||
elif Opt.debug_level is not None:
|
||||
if Opt.debug_level < 0 or Opt.debug_level > 9:
|
||||
Logger.Warn("UPT", ST.ERR_DEBUG_LEVEL)
|
||||
Logger.SetLevel(Logger.INFO)
|
||||
|
Reference in New Issue
Block a user