Skip to content
This repository has been archived by the owner on Jan 30, 2021. It is now read-only.

Commit

Permalink
refactor: use f-string instead format method
Browse files Browse the repository at this point in the history
  • Loading branch information
crazymidnight committed Dec 3, 2018
1 parent 90b5f75 commit 9d4e332
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ class User(db.Model):
password_hash = db.Column(db.String(128))

def __repr__(self):
return "<User {}>.format(self.username)"
return f"<User {self.username}>"

0 comments on commit 9d4e332

Please sign in to comment.