Skip to content

Commit d389478

Browse files
relikdgtsystem
authored andcommitted
ref: replace f-string with format
1 parent c6e89c1 commit d389478

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

remotezip.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,8 @@ def _printTable(data, header, align):
271271
col_w = [len(col) for col in header]
272272
for row in data:
273273
col_w = [max(w, len(str(x))) for w, x in zip(col_w, row)]
274-
fmt = ' '.join(f'{{:{a}{w}}}' for w, a in zip(col_w, align + '<' * 99))
274+
fmt = ' '.join('{{:{}{}}}'.format(a, w)
275+
for w, a in zip(col_w, align + '<' * 99))
275276
# print table
276277
print(fmt.format(*header).rstrip())
277278
print(fmt.format(*['-' * w for w in col_w]))

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
setup(
77
name='remotezip',
8-
version='0.12.2',
8+
version='0.12.3',
99
author='Giuseppe Tribulato',
1010
author_email='[email protected]',
1111
py_modules=['remotezip'],

0 commit comments

Comments
 (0)