aboutsummaryrefslogtreecommitdiffstats
path: root/python/gevent/baseserver.py
diff options
context:
space:
mode:
authorJames Taylor <user234683@users.noreply.github.com>2018-09-14 19:32:27 -0700
committerJames Taylor <user234683@users.noreply.github.com>2018-09-14 19:32:27 -0700
commit4212164e91ba2f49583cf44ad623a29b36db8f77 (patch)
tree47aefe3c0162f03e0c823b43873356f69c1cd636 /python/gevent/baseserver.py
parent6ca20ff7010f2bafc7fefcb8cad982be27a8aeae (diff)
downloadyt-local-4212164e91ba2f49583cf44ad623a29b36db8f77.tar.lz
yt-local-4212164e91ba2f49583cf44ad623a29b36db8f77.tar.xz
yt-local-4212164e91ba2f49583cf44ad623a29b36db8f77.zip
Windows: Use 32-bit distribution of python
Diffstat (limited to 'python/gevent/baseserver.py')
-rw-r--r--python/gevent/baseserver.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/python/gevent/baseserver.py b/python/gevent/baseserver.py
index 5b8bce5..d20d936 100644
--- a/python/gevent/baseserver.py
+++ b/python/gevent/baseserver.py
@@ -163,9 +163,11 @@ class BaseServer(object):
def stop_accepting(self):
if self._watcher is not None:
self._watcher.stop()
+ self._watcher.close()
self._watcher = None
if self._timer is not None:
self._timer.stop()
+ self._timer.close()
self._timer = None
def do_handle(self, *args):
@@ -398,5 +400,5 @@ def _parse_address(address):
def parse_address(address):
try:
return _parse_address(address)
- except ValueError as ex:
+ except ValueError as ex: # pylint:disable=try-except-raise
raise ValueError('Failed to parse address %r: %s' % (address, ex))