<s> """<STR_LIT>""" <EOL> class ChunkedDecodeError ( Exception ) : <EOL> """<STR_LIT>""" <EOL> pass <EOL> class InvalidResponseError ( Exception ) : <EOL> """<STR_LIT>""" <EOL> pass <EOL> class SocketError ( Exception ) : <EOL> """<STR_LIT>""" <EOL> pass <EOL> class LineTooLongError ( Exception ) : <EOL> """<STR_LIT>""" <EOL> pass <EOL> try : <EOL> ConnectionResetError = ConnectionResetError <EOL> except NameError : <EOL> class ConnectionResetError ( Exception ) : <EOL> """<STR_LIT>""" <EOL> class TLSUpgrade ( Exception ) : <EOL> """<STR_LIT>""" <EOL> def __init__ ( self , negotiated , sock ) : <EOL> super ( TLSUpgrade , self ) . __init__ ( ) <EOL> self . negotiated = negotiated <EOL> self . sock = sock <EOL> class HTTPUpgrade ( Exception ) : <EOL> """<STR_LIT>""" <EOL> def __init__ ( self , negotiated , sock ) : <EOL> super ( HTTPUpgrade , self ) . __init__ ( ) <EOL> self . negotiated = negotiated <EOL> self . sock = sock </s>
