mirror of
https://github.com/zulip/zulip.git
synced 2025-10-23 04:52:12 +00:00
python: Convert more percent formatting to Python 3.6 f-strings.
Generated by pyupgrade --py36-plus. Now including %d, %i, %u, and multi-line strings. Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
committed by
Tim Abbott
parent
1ed2d9b4a0
commit
74c17bf94a
@@ -30,7 +30,7 @@ def renumber_migration(conflicts: List[str], order: List[int], last_correct_migr
|
||||
|
||||
# Rename the migration indexing at the end
|
||||
new_name = conflicts[i-1].replace(conflicts[i-1][0:4],
|
||||
'%04d' % (int(last_correct_migration[0:4]) + 1,))
|
||||
f'{int(last_correct_migration[0:4]) + 1:04}')
|
||||
os.rename('zerver/migrations/' + conflicts[i-1], 'zerver/migrations/' + new_name)
|
||||
|
||||
last_correct_migration = new_name.replace('.py', '')
|
||||
|
Reference in New Issue
Block a user