@@ -101,7 +101,7 @@ def article(word, function=INDEFINITE):
101101
102102def referenced (word , article = INDEFINITE ):
103103 """Returns a string with the article + the word."""
104- return "%s %s" % (_article (word , article ), word )
104+ return "{0} {1}" . format (_article (word , article ), word )
105105
106106# print referenced("hour")
107107# print referenced("FBI")
@@ -798,7 +798,7 @@ def grade(adjective, suffix=COMPARATIVE):
798798 return grade_irregular [adjective ][suffix != COMPARATIVE ]
799799 elif adjective in grade_uninflected :
800800 # A number of adjectives don't inflect at all.
801- return "%s %s" % (suffix == COMPARATIVE and "more" or "most" , adjective )
801+ return "{0} {1}" . format (suffix == COMPARATIVE and "more" or "most" , adjective )
802802 elif n <= 2 and adjective .endswith ("e" ):
803803 # With one syllable and ending with an e: larger, wiser.
804804 suffix = suffix .lstrip ("e" )
@@ -819,7 +819,7 @@ def grade(adjective, suffix=COMPARATIVE):
819819 pass
820820 else :
821821 # With three or more syllables: more generous, more important.
822- return "%s %s" % (suffix == COMPARATIVE and "more" or "most" , adjective )
822+ return "{0} {1}" . format (suffix == COMPARATIVE and "more" or "most" , adjective )
823823 return adjective + suffix
824824
825825
0 commit comments