<s> """<STR_LIT>""" <EOL> import os <EOL> import sys <EOL> __version__ = '<STR_LIT>' <EOL> __build__ = "<STR_LIT>" <EOL> class MethodNotFound ( Exception ) : <EOL> def __init__ ( self , name ) : <EOL> Exception . __init__ ( self , "<STR_LIT>" % name ) <EOL> class PortNotFound ( Exception ) : <EOL> def __init__ ( self , name ) : <EOL> Exception . __init__ ( self , "<STR_LIT>" % name ) <EOL> class ServiceNotFound ( Exception ) : <EOL> def __init__ ( self , name ) : <EOL> Exception . __init__ ( self , "<STR_LIT>" % name ) <EOL> class TypeNotFound ( Exception ) : <EOL> def __init__ ( self , name ) : <EOL> Exception . __init__ ( self , "<STR_LIT>" % tostr ( name ) ) <EOL> class BuildError ( Exception ) : <EOL> msg = """<STR_LIT>""" <EOL> def __init__ ( self , name , exception ) : <EOL> Exception . __init__ ( self , BuildError . msg % ( name , exception ) ) <EOL> class SoapHeadersNotPermitted ( Exception ) : <EOL> msg = """<STR_LIT>""" <EOL> def __init__ ( self , name ) : <EOL> Exception . __init__ ( self , self . msg % name ) <EOL> class WebFault ( Exception ) : <EOL> def __init__ ( self , fault , document ) : <EOL> if hasattr ( fault , '<STR_LIT>' ) : <EOL> Exception . __init__ ( self , "<STR_LIT>" % fault . faultstring ) <EOL> self . fault = fault <EOL> self . document = document <EOL> class Repr : <EOL> def __init__ ( self , x ) : <EOL> self . x = x <EOL> def __str__ ( self ) : <EOL> return repr ( self . x ) <EOL> def tostr ( object , encoding = None ) : <EOL> """<STR_LIT>""" <EOL> if isinstance ( object , basestring ) : <EOL> if encoding is None : <EOL> return object <EOL> else : <EOL> return object . encode ( encoding ) <EOL> if isinstance ( object , tuple ) : <EOL> s = [ '<STR_LIT:(>' ] <EOL> for item in object : <EOL> if isinstance ( item , basestring ) : <EOL> s . append ( item ) <EOL> else : <EOL> s . append ( tostr ( item ) ) <EOL> s . append ( '<STR_LIT:U+002CU+0020>' ) <EOL> s . append ( '<STR_LIT:)>' ) <EOL> return '<STR_LIT>' . join ( s ) <EOL> if isinstance ( object , list ) : <EOL> s = [ '<STR_LIT:[>' ] <EOL> for item in object : <EOL> if isinstance ( item , basestring ) : <EOL> s . append ( item ) <EOL> else : <EOL> s . append ( tostr ( item ) ) <EOL> s . append ( '<STR_LIT:U+002CU+0020>' ) <EOL> s . append ( '<STR_LIT:]>' ) <EOL> return '<STR_LIT>' . join ( s ) <EOL> if isinstance ( object , dict ) : <EOL> s = [ '<STR_LIT:{>' ] <EOL> for item in object . items ( ) : <EOL> if isinstance ( item [ <NUM_LIT:0> ] , basestring ) : <EOL> s . append ( item [ <NUM_LIT:0> ] ) <EOL> else : <EOL> s . append ( tostr ( item [ <NUM_LIT:0> ] ) ) <EOL> s . append ( '<STR_LIT>' ) <EOL> if isinstance ( item [ <NUM_LIT:1> ] , basestring ) : <EOL> s . append ( item [ <NUM_LIT:1> ] ) <EOL> else : <EOL> s . append ( tostr ( item [ <NUM_LIT:1> ] ) ) <EOL> s . append ( '<STR_LIT:U+002CU+0020>' ) <EOL> s . append ( '<STR_LIT:}>' ) <EOL> return '<STR_LIT>' . join ( s ) <EOL> try : <EOL> return unicode ( object ) <EOL> except : <EOL> return str ( object ) <EOL> class null : <EOL> """<STR_LIT>""" <EOL> pass <EOL> def objid ( obj ) : <EOL> return obj . __class__ . __name__ + '<STR_LIT::>' + hex ( id ( obj ) ) <EOL> import client </s>
