<s> """<STR_LIT>""" <EOL> class PathInfo ( object ) : <EOL> __slots__ = [ '<STR_LIT>' ] <EOL> def __init__ ( self , packed = None , integer = None , ip = None ) : <EOL> if packed : <EOL> self . path_info = packed <EOL> elif ip : <EOL> self . path_info = '<STR_LIT>' . join ( [ chr ( int ( _ ) ) for _ in ip . split ( '<STR_LIT:.>' ) ] ) <EOL> elif integer : <EOL> self . path_info = '<STR_LIT>' . join ( [ chr ( ( integer >> offset ) & <NUM_LIT> ) for offset in [ <NUM_LIT> , <NUM_LIT:16> , <NUM_LIT:8> , <NUM_LIT:0> ] ] ) <EOL> else : <EOL> self . path_info = '<STR_LIT>' <EOL> def __eq__ ( self , other ) : <EOL> return self . path_info == other . path_info <EOL> def __neq__ ( self , other ) : <EOL> return self . path_info != other . path_info <EOL> def __lt__ ( self , other ) : <EOL> raise RuntimeError ( '<STR_LIT>' ) <EOL> def __le__ ( self , other ) : <EOL> raise RuntimeError ( '<STR_LIT>' ) <EOL> def __gt__ ( self , other ) : <EOL> raise RuntimeError ( '<STR_LIT>' ) <EOL> def __ge__ ( self , other ) : <EOL> raise RuntimeError ( '<STR_LIT>' ) <EOL> def __len__ ( self ) : <EOL> return len ( self . path_info ) <EOL> def json ( self ) : <EOL> if self . path_info : <EOL> return '<STR_LIT>' % '<STR_LIT:.>' . join ( [ str ( ord ( _ ) ) for _ in self . path_info ] ) <EOL> return '<STR_LIT>' <EOL> def __repr__ ( self ) : <EOL> if self . path_info : <EOL> return '<STR_LIT>' % '<STR_LIT:.>' . join ( [ str ( ord ( _ ) ) for _ in self . path_info ] ) <EOL> return '<STR_LIT>' <EOL> def pack ( self ) : <EOL> if self . path_info : <EOL> return self . path_info <EOL> return '<STR_LIT>' <EOL> PathInfo . NOPATH = PathInfo ( ) </s>
