<s> from __future__ import absolute_import <EOL> from __future__ import division <EOL> from __future__ import print_function <EOL> from . subscriber import Subscriber <EOL> from . topics import PodSend , RawSend <EOL> __all__ = [ '<STR_LIT>' ] <EOL> class PodMessageSerializer ( Subscriber ) : <EOL> def __init__ ( self , board , serializer ) : <EOL> super ( PodMessageSerializer , self ) . __init__ ( board , <EOL> { PodSend : self . _on_send } ) <EOL> self . _board = board <EOL> self . _serializer = serializer <EOL> def _on_send ( self , topic , pod ) : <EOL> self . _board . publish ( RawSend , self . _serializer . serialize ( pod ) ) </s>
