Create a Fake shutdown event so that users of the API are not required to register a shutdown event

This commit is contained in:
Matt Martz 2014-02-28 12:16:27 -06:00
parent 88565d5acd
commit bab7a9d88e
1 changed files with 8 additions and 1 deletions

View File

@ -17,9 +17,16 @@
__version__ = '1.0.0' __version__ = '1.0.0'
class FakeShutdownEvent(object):
@staticmethod
def isSet():
return False
# Some global variables we use # Some global variables we use
source = None source = None
shutdown_event = None shutdown_event = FakeShutdownEvent()
import math import math
import time import time