Skip to content

Commit 62ace92

Browse files
committed
Replacing f-strings with regular strings
1 parent 1536346 commit 62ace92

5 files changed

Lines changed: 9 additions & 9 deletions

File tree

client/chat_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ def entry_handler(_):
8989
entry = tk.Entry(
9090
font=(None, 12),
9191
insertbackground=colour_name,
92-
relief="groove",
92+
relief='groove',
9393
foreground=colour_text, background=colour_bg,
9494
highlightthickness=10, highlightbackground=colour_bg, highlightcolor=colour_bg,
9595
border=1.5)

client/more_examples/api_wrapper/tictactoe_client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,6 @@ def user_input(prompt):
5555
if state.winner is None:
5656
print('No winner...')
5757
elif state.winner:
58-
print(f'You win!')
58+
print('You win!')
5959
else:
60-
print(f'You lose...')
60+
print('You lose...')

client/more_examples/observer_mode/output_client.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
Tic-tac-toe output client.
44
55
This program joins a game session as a passive observer. It can be used in
6-
combination with the input client (but with a regular client, too). The input
6+
combination with the input client (as well as with a regular client). The input
77
client joins a session as an active player and submits moves. This way, the
88
implementation of input and output can be divided between two programs. Both
99
programs need to pass the same value for the name parameter when joining a game
@@ -42,6 +42,6 @@ def print_board(board):
4242
if winner is None:
4343
print('No winner...')
4444
elif winner == observed_id:
45-
print(f'You win!')
45+
print('You win!')
4646
else:
47-
print(f'You lose...')
47+
print('You lose...')

client/tictactoe_client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,6 @@ def user_input(prompt):
5656
if winner is None:
5757
print('No winner...')
5858
elif winner == my_id:
59-
print(f'You win!')
59+
print('You win!')
6060
else:
61-
print(f'You lose...')
61+
print('You lose...')

server/utility.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ def _log(self, message):
8686
Parameters:
8787
message (str): message
8888
"""
89-
time = datetime.strftime(datetime.now(), "%Y-%m-%d %X")
89+
time = datetime.strftime(datetime.now(), '%Y-%m-%d %X')
9090
print(f'[{time} {self._ip}:{self._port}] {message}')
9191

9292
class FrameworkLogger:

0 commit comments

Comments
 (0)