<s> from . . script import tools <EOL> from ... serialize import b2h <EOL> from . ScriptType import ScriptType <EOL> class ScriptNulldata ( ScriptType ) : <EOL> TEMPLATE = tools . compile ( "<STR_LIT>" ) <EOL> def __init__ ( self , nulldata ) : <EOL> self . nulldata = nulldata <EOL> self . _script = None <EOL> @ classmethod <EOL> def from_script ( cls , script ) : <EOL> r = cls . match ( script ) <EOL> if r : <EOL> nulldata = r [ "<STR_LIT>" ] [ <NUM_LIT:0> ] <EOL> s = cls ( nulldata ) <EOL> return s <EOL> raise ValueError ( "<STR_LIT>" ) <EOL> def script ( self ) : <EOL> if self . _script is None : <EOL> STANDARD_SCRIPT_OUT = "<STR_LIT>" <EOL> script_text = STANDARD_SCRIPT_OUT % b2h ( self . nulldata ) <EOL> self . _script = tools . compile ( script_text ) <EOL> return self . _script <EOL> def info ( self , netcode = "<STR_LIT>" ) : <EOL> return dict ( type = "<STR_LIT>" , script = self . _script , summary = self . nulldata ) <EOL> def __repr__ ( self ) : <EOL> return "<STR_LIT>" % self . nulldata </s>
