Remove various sys.version_info >= 3 checks

This commit is contained in:
Chris Hennes
2022-11-07 21:52:24 -06:00
committed by Uwe
parent d02bb1b7ea
commit fa8e0a6865
3 changed files with 3 additions and 11 deletions

View File

@@ -359,8 +359,6 @@ class FCADLogger(object):
build.
'''
_string_type = str if sys.version_info[0] >= 3 else basestring
_levels = { 'Error':0, 'error':0,
'Warning':1, 'warn':1,
'Message':2, 'msg':2, 'info':2,
@@ -529,7 +527,7 @@ class FCADLogger(object):
string.format()
'''
if (args or kargs) and isinstance(msg,self.__class__._string_type):
if (args or kargs) and isinstance(msg,str):
if not kargs:
msg = msg.format(*args)
else: