Updated to f string

This commit is contained in:
Dimitris Zlatanidis 2023-04-27 23:25:29 +03:00
parent 16f3326d04
commit 806c414b02

View file

@ -68,8 +68,8 @@ class Upgrade(Configs):
inst_pkg: str = f'{name}-{inst_version}'
logger = logging.getLogger(LoggingConfig.date)
logger.info('%s: %s: %s', self.__class__.__name__,
self.__class__.is_package_upgradeable.__name__,
logger.info(f'{self.__class__.__name__}: '
f'{self.__class__.is_package_upgradeable.__name__}: '
f'{repo_tag=}, {repo_pkg=}, {inst_pkg=}, {parse(repo_pkg) > parse(inst_pkg)}, '
f'{parse(repo_pkg) == parse(inst_pkg) and parse(repo_build) > parse(inst_build)}')
@ -83,8 +83,8 @@ class Upgrade(Configs):
except InvalidVersion:
logger = logging.getLogger(LoggingConfig.date)
logger.exception('%s: %s: %s', self.__class__.__name__,
self.__class__.is_package_upgradeable.__name__,
logger.exception(f'{self.__class__.__name__}: '
f'{self.__class__.is_package_upgradeable.__name__}: '
f'{repo_tag=}, {repo_pkg=}, {inst_pkg=}, {repo_pkg > inst_pkg}, '
f'{repo_pkg == inst_pkg and repo_build > inst_build}')