old_contents: from .commands import Command
  
  
  def ping(connection, message):
      """On recieving PING, repond with PONG."""
      payload = Command.PONG.value
      if message.trailing:
          payload += b' :' + message.trailing
      connection.send(payload)
  
new_contents: from .commands import Command
  
  
  def ping(connection, message):
      """On recieving PING, repond with PONG."""
      payload = Command.PONG.value + b' :' + message.trailing
      connection.send(payload)
  
subject: Simplify ping/pong