Skip to content

Commit

Permalink
Use is for identity checks
Browse files Browse the repository at this point in the history
  • Loading branch information
godwhoa committed Aug 17, 2019
1 parent 51755da commit 4a02120
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion piqueserver/core_commands/info.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def ping(connection, player):
/ping
"""
ping = player.latency
if connection == player:
if connection is player:
return 'Your ping is {} ms. Lower ping is better!'.format(player.latency)
return "{}'s ping is {} ms".format(player.name, player.latency)

Expand Down
2 changes: 1 addition & 1 deletion piqueserver/core_commands/player.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ def client(connection, player):
Tell you information about your client or the client of a given player
/client [player]
"""
if connection == player:
if connection is player:
who_is = "You are"
else:
who_is = player.name + " is"
Expand Down

0 comments on commit 4a02120

Please sign in to comment.