# http://pyrocko.org - GPLv3 # # The Pyrocko Developers, 21st Century # ---|P------/S----------~Lg----------
global DOWNLOAD_CALLBACK
if not callable(callback): raise AttributeError('Callback has to be a function') DOWNLOAD_CALLBACK = callback
def callback(args): return DOWNLOAD_CALLBACK(context_str, args)
return callback |