Removing .format() in favour of fstrings

pull/8/head
sgoudham 4 years ago
parent e6742806b6
commit 4219e681c8

@ -125,11 +125,11 @@ def lineCount():
# Adding up the total lines of code # Adding up the total lines of code
total = comments + blank + code total = comments + blank + code
return "Code: {}\n" \ return f"Code: {code}\n" \
"Commentary: {}\n" \ f"Commentary: {comments}\n" \
"Blank: {}\n" \ f"Blank: {blank}\n" \
"Total: {}\n" \ f"Total: {total}\n" \
"Files: {}".format(code, comments, blank, total, file_amount) f"Files: {file_amount}"
class Info(Cog): class Info(Cog):

Loading…
Cancel
Save