From: A. Jesse Jiryu Davis Date: Wed, 25 Feb 2015 20:54:46 +0000 (-0500) Subject: Remove Semaphore.io_loop. X-Git-Tag: v4.2.0b1~93^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=897ef080b706876385582fe6fd785b2b29b29ff9;p=thirdparty%2Ftornado.git Remove Semaphore.io_loop. --- diff --git a/tornado/locks.py b/tornado/locks.py index a6d99be42..b7312190a 100644 --- a/tornado/locks.py +++ b/tornado/locks.py @@ -167,7 +167,6 @@ class Semaphore(object): if value < 0: raise ValueError('semaphore initial value must be >= 0') - self.io_loop = ioloop.IOLoop.current() self._value = value self._waiters = collections.deque() @@ -209,7 +208,7 @@ class Semaphore(object): waiter = Future() self._waiters.append(waiter) if timeout: - future = gen.with_timeout(timeout, waiter, self.io_loop, + future = gen.with_timeout(timeout, waiter, quiet_exceptions=gen.TimeoutError) # Set waiter's exception after the deadline.