<s> from __future__ import ( <EOL> absolute_import , <EOL> print_function , <EOL> unicode_literals , <EOL> ) <EOL> class SimpleType ( object ) : <EOL> def __init__ ( self , value ) : <EOL> self . value = value <EOL> def __bool__ ( self ) : <EOL> return self . __nonzero__ ( ) <EOL> class OnOff ( SimpleType ) : <EOL> '''<STR_LIT>''' <EOL> ON_VALUES = [ '<STR_LIT:true>' , '<STR_LIT>' , '<STR_LIT:1>' ] <EOL> def __nonzero__ ( self ) : <EOL> return not self . value or self . value in self . ON_VALUES <EOL> class Underline ( SimpleType ) : <EOL> '''<STR_LIT>''' <EOL> def __nonzero__ ( self ) : <EOL> OFF_VALUES = [ '<STR_LIT:none>' , '<STR_LIT>' , None ] <EOL> return self . value not in OFF_VALUES </s>
