Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

f-stirng modify sample/backup_restore_operations_async.py #18

Open
KdHyeon0661 opened this issue Jul 28, 2022 · 0 comments
Open

f-stirng modify sample/backup_restore_operations_async.py #18

KdHyeon0661 opened this issue Jul 28, 2022 · 0 comments

Comments

@KdHyeon0661
Copy link

KdHyeon0661 commented Jul 28, 2022

Is your feature request related to a problem? Please describe.
Replace str.format() with another method to improve the readability of source code.

Describe the solution you'd like
Change str.format() formatting of the source code to f-string formatting.

Describe alternatives you've considered
Before:
print("Key with name '{0}' created with key type '{1}'".format(key.name, key.key_type))

After:
print(f"Key with name '{key.name}' created with key type '{key.key_type}'")

Additional context
x

@KdHyeon0661 KdHyeon0661 changed the title modify string formatting of sdk/keyvault/azure-keyvault/backup_restore_operations_async.py to f-string modify string formatting of sample/backup_restore_operations_async.py to f-string Jul 29, 2022
@KdHyeon0661 KdHyeon0661 changed the title modify string formatting of sample/backup_restore_operations_async.py to f-string f-stirng modify sample/backup_restore_operations_async.py Sep 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant