Skip to content

Commit 722dbe4

Browse files
committed
Refactoring. Using f-strings
1 parent 1843c66 commit 722dbe4

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

webserver__cherrypy__examples/sessions.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,10 @@ def index(self):
2727

2828
# And display a silly hit count message!
2929
return (
30-
"""
30+
f"""
3131
During your current session, you've viewed this
32-
page %s times! Your life is a patio of fun!
32+
page {count} times! Your life is a patio of fun!
3333
"""
34-
% count
3534
)
3635

3736

0 commit comments

Comments
 (0)