(self, value)
| 183 | return self.settimeout(0) |
| 184 | |
| 185 | def settimeout(self, value): |
| 186 | if value is None: |
| 187 | # Blocking mode |
| 188 | self._timeout = win32event.INFINITE |
| 189 | elif not isinstance(value, (float, int)) or value < 0: |
| 190 | raise ValueError('Timeout value out of range') |
| 191 | else: |
| 192 | # Timeout mode - Value converted to milliseconds |
| 193 | self._timeout = int(value * 1000) |
| 194 | |
| 195 | def gettimeout(self): |
| 196 | return self._timeout |
no outgoing calls
no test coverage detected