libevent.py: kill trailing whitespace

This commit is contained in:
Denis Bilenko
2009-06-17 12:37:07 +07:00
parent 040aa185f4
commit d6eebf4ad3

View File

@@ -5,10 +5,10 @@
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is # copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions: # furnished to do so, subject to the following conditions:
# #
# The above copyright notice and this permission notice shall be included in # The above copyright notice and this permission notice shall be included in
# all copies or substantial portions of the Software. # all copies or substantial portions of the Software.
# #
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
@@ -24,9 +24,6 @@ import time
from eventlet.hubs import hub from eventlet.hubs import hub
# XXX for debugging only
#raise ImportError()
try: try:
# use rel if available # use rel if available
import rel import rel
@@ -39,7 +36,7 @@ except ImportError:
import event import event
class Hub(hub.BaseHub): class Hub(hub.BaseHub):
def __init__(self, clock=time.time): def __init__(self, clock=time.time):
super(Hub, self).__init__(clock) super(Hub, self).__init__(clock)
self.interrupted = False self.interrupted = False
@@ -77,7 +74,7 @@ class Hub(hub.BaseHub):
def signal_received(self, signal): def signal_received(self, signal):
# can't do more than set this flag here because the pyevent callback # can't do more than set this flag here because the pyevent callback
# mechanism swallows exceptions raised here, so we have to raise in # mechanism swallows exceptions raised here, so we have to raise in
# the 'main' greenlet (in wait()) to kill the program # the 'main' greenlet (in wait()) to kill the program
self.interrupted = True self.interrupted = True
event.abort() event.abort()
@@ -103,7 +100,7 @@ class Hub(hub.BaseHub):
# raise any signals that deserve raising # raise any signals that deserve raising
if self.interrupted: if self.interrupted:
self.interrupted = False self.interrupted = False
raise KeyboardInterrupt() raise KeyboardInterrupt()
def add_timer(self, timer): def add_timer(self, timer):
# store the pyevent timer object so that we can cancel later # store the pyevent timer object so that we can cancel later