コード例 #1
0
 def __init__(self, host, cert, reason):
     self.host = host
     self.cert = cert
     self.reason = reason.rstrip()
     message = ('Host %s returned an invalid certificate (%s) %s' %
                (self.host, self.reason, self.cert)).rstrip()
     HTTPException.__init__(self, message)
コード例 #2
0
 def __init__(self, host, cert, reason):
     self.host = host
     self.cert = cert
     self.reason = reason.rstrip()
     message = ('Host %s returned an invalid certificate (%s) %s' %
         (self.host, self.reason, self.cert)).rstrip()
     HTTPException.__init__(self, message)
コード例 #3
0
ファイル: http.py プロジェクト: TTia/Pykipedia
 def __init__(self, *args, **kwargs):
     HTTPException.__init__(self, *args, **kwargs)
     Loggable.__init__(self, self.__class__, args[0])
コード例 #4
0
ファイル: request.py プロジェクト: notlaast/vamdclib
 def __init__(self):
     HTTPException.__init__(self, 408, "Timeout")
     self.strerror = "Timeout"
コード例 #5
0
ファイル: http.py プロジェクト: Sapphirine/stackexchange
 def __init__(self, *args, **kwargs):
     HTTPException.__init__(self, *args, **kwargs)
     Loggable.__init__(self, self.__class__, args[0])
コード例 #6
0
 def __init__(self, host, limit):
     HTTPException.__init__(self)
     self.host = host
     self.limit = limit
コード例 #7
0
 def __init__(self, host, cert, reason):
     HTTPException.__init__(self)
     self.host = host
     self.cert = cert
     self.reason = reason.rstrip()
コード例 #8
0
 def __init__(self, host, cert, reason):
     HTTPException.__init__(self)
     self.host = host
     self.cert = cert
     self.reason = reason.rstrip()
コード例 #9
0
 def __init__(self, host, limit):
     HTTPException.__init__(self)
     self.host = host
     self.limit = limit