From 7f3cf9612fb69f3bda83673f4759cbcae633b006 Mon Sep 17 00:00:00 2001 From: Ezequiel Medina Date: Wed, 26 Jun 2019 14:15:23 -0300 Subject: [PATCH] replace f-string to make it compatible with python 3.5 --- bert_sklearn/config.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bert_sklearn/config.py b/bert_sklearn/config.py index eec63a5..36ea24e 100644 --- a/bert_sklearn/config.py +++ b/bert_sklearn/config.py @@ -99,9 +99,9 @@ def __init__(self, tokenizer=None, max_seq_length=64, train_sampler='random', self.ignore_label_id = np.array(self.ignore_label_id) def __repr__(self): - attrs = ["%s=%s"%(key, val) for key, val in vars(self).items()] - attrs = ",".join(attrs) - return f'{self.__class__.__name__}({attrs})' + attrs = ['{}={}'.format(key, val) for key, val in vars(self).items()] + attrs = ','.join(attrs) + return '{}({})'.format(self.__class__.__name__, attrs) def model2config(model):