AstroJS/botanjs/dummy.py

35 lines
454 B
Python
Raw Normal View History

#!/usr/bin/env python3
class log:
2022-08-02 13:35:37 +00:00
@staticmethod
def info( *args ):
print( *args )
@staticmethod
def error( *args ):
print( *args )
class dummyTask( object ):
Func = None
def delay( self, *args ):
self.Func( *args )
def __init__( self, *args ):
self.Func = args[0]
def __call__( self, *args ):
pass
class dummyConf:
2021-09-05 15:16:37 +00:00
def update( self, broker_url = None ):
pass
class app:
conf = dummyConf()
def task():
return dummyTask