mirror of
https://github.com/django-q2/django-q2.git
synced 2026-10-06 03:18:11 +08:00
Replaces format with f-strings
This commit is contained in:
@@ -21,7 +21,7 @@ def count_letters2(obj):
|
||||
return count_letters(obj.get_words())
|
||||
|
||||
|
||||
def word_multiply(x, word=''):
|
||||
def word_multiply(x, word=""):
|
||||
return len(word) * x
|
||||
|
||||
|
||||
@@ -39,8 +39,8 @@ def get_user_id(user):
|
||||
|
||||
|
||||
def hello():
|
||||
return 'hello'
|
||||
return "hello"
|
||||
|
||||
|
||||
def result(obj):
|
||||
print('RESULT HOOK {} : {}'.format(obj.name, obj.result))
|
||||
print(f"RESULT HOOK {obj.name} : {obj.result()}")
|
||||
|
||||
Reference in New Issue
Block a user