From 1e1be6bc3f068aeaafffb1fcb4a46d0ef7223143 Mon Sep 17 00:00:00 2001 From: Samuel Husso Date: Mon, 4 Jun 2018 12:35:51 +0300 Subject: [PATCH] arguments,configuration: fstring in use --- freqtrade/arguments.py | 2 +- freqtrade/configuration.py | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/freqtrade/arguments.py b/freqtrade/arguments.py index 04af2a6df..331bb73a0 100644 --- a/freqtrade/arguments.py +++ b/freqtrade/arguments.py @@ -72,7 +72,7 @@ class Arguments(object): self.parser.add_argument( '--version', action='version', - version='%(prog)s {}'.format(__version__), + version=f'%(prog)s {__version__}' ) self.parser.add_argument( '-c', '--config', diff --git a/freqtrade/configuration.py b/freqtrade/configuration.py index 0b484c57a..1f14df560 100644 --- a/freqtrade/configuration.py +++ b/freqtrade/configuration.py @@ -236,9 +236,8 @@ class Configuration(object): exchange = config.get('exchange', {}).get('name').lower() if exchange not in ccxt.exchanges: - exception_msg = 'Exchange "{}" not supported.\n' \ - 'The following exchanges are supported: {}'\ - .format(exchange, ', '.join(ccxt.exchanges)) + exception_msg = f'Exchange "{exchange}" not supported.\n' \ + f'The following exchanges are supported: {", ".join(ccxt.exchanges)}' logger.critical(exception_msg) raise OperationalException(