equal
deleted
inserted
replaced
74 def _gettimeout(self): |
74 def _gettimeout(self): |
75 return self.timeout |
75 return self.timeout |
76 |
76 |
77 def _settimeout(self, timeout): |
77 def _settimeout(self, timeout): |
78 self.timeout = timeout |
78 self.timeout = timeout |
79 from M2Crypto.SSL import Connection |
79 from M2Crypto.SSL import Connection # pylint: disable=import-error |
80 Connection.timeout = None |
80 Connection.timeout = None |
81 Connection.gettimeout = _gettimeout |
81 Connection.gettimeout = _gettimeout |
82 Connection.settimeout = _settimeout |
82 Connection.settimeout = _settimeout |
83 # M2Crypto.SSL.Checker.WrongHost: Peer certificate commonName does not |
83 # M2Crypto.SSL.Checker.WrongHost: Peer certificate commonName does not |
84 # match host, expected 127.0.0.1, got server |
84 # match host, expected 127.0.0.1, got server |