From 1cb430f59b0116cbf66d71ea5f6d7909eeacea25 Mon Sep 17 00:00:00 2001 From: Matthias Date: Sat, 1 May 2021 17:41:40 +0200 Subject: [PATCH] Remove encoding specifics, gitattributes to echeckout as utf8 --- .gitattributes | 7 ++++--- freqtrade/optimize/hyperopt.py | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.gitattributes b/.gitattributes index 00abd1d9d..bc0382636 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1,3 +1,4 @@ -*.py eol=lf -*.sh eol=lf -*.ps1 eol=crlf +* encoding=UTF-8 +*.py eol=lf +*.sh eol=lf +*.ps1 eol=crlf diff --git a/freqtrade/optimize/hyperopt.py b/freqtrade/optimize/hyperopt.py index ef842faec..6f899aba6 100644 --- a/freqtrade/optimize/hyperopt.py +++ b/freqtrade/optimize/hyperopt.py @@ -353,7 +353,7 @@ class Hyperopt: f"Total profit {results_metrics['total_profit']: 11.8f} {stake_cur} " f"({results_metrics['profit']: 7.2f}\N{GREEK CAPITAL LETTER SIGMA}%). " f"Avg duration {results_metrics['duration']:5.1f} min." - ).encode('utf-8', 'replace').decode('utf-8') + ) def get_optimizer(self, dimensions: List[Dimension], cpu_count) -> Optimizer: return Optimizer(