<s> from __future__ import absolute_import <EOL> from __future__ import division <EOL> from __future__ import print_function <EOL> from . message import Message <EOL> __all__ = [ '<STR_LIT>' ] <EOL> class PingMessage ( Message ) : <EOL> def __init__ ( self , id = None ) : <EOL> super ( PingMessage , self ) . __init__ ( ) <EOL> self . _id = id <EOL> def __eq__ ( self , other ) : <EOL> if not isinstance ( other , PingMessage ) : <EOL> return super ( PingMessage , self ) . __eq__ ( other ) <EOL> return self . _id == other . _id <EOL> def __str__ ( self ) : <EOL> return '<STR_LIT>' . format ( self . _id ) <EOL> @ property <EOL> def id ( self ) : <EOL> return self . _id <EOL> def has_id ( self ) : <EOL> return self . _id is not None </s>
