From 19a73759cafc359a5337fac9d61233fa59c4c637 Mon Sep 17 00:00:00 2001 From: Abdurrahmaan Iqbal Date: Tue, 9 Jul 2019 09:50:36 +0100 Subject: [PATCH] Remove f-string for wider compatiblity --- dataset/table.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dataset/table.py b/dataset/table.py index e8bc9c8..ba7018f 100644 --- a/dataset/table.py +++ b/dataset/table.py @@ -193,13 +193,13 @@ class Table(object): # bindparam requires names to not conflict (cannot be "id" for id) for key in keys: - row[f'_{key}'] = row[f'{key}'] + row['_%s' % key] = row[key] # Update when chunk_size is fulfilled or this is the last row if len(chunk) == chunk_size or index == len(rows) - 1: stmt = self.table.update( whereclause=and_( - *[self.table.c[k] == bindparam(f'_{k}') for k in keys] + *[self.table.c[k] == bindparam('_%s' % k) for k in keys] ), values={ col: bindparam(col, required=False) for col in columns