Skip to content

Instantly share code, notes, and snippets.

@christian-blades-cb
Created April 26, 2016 20:01
Show Gist options
  • Save christian-blades-cb/50bc5f53a37d233ef374fd86401b5313 to your computer and use it in GitHub Desktop.
Save christian-blades-cb/50bc5f53a37d233ef374fd86401b5313 to your computer and use it in GitHub Desktop.
my own personal hell
# celery/five.py
__all__ = ['Counter', 'reload', 'UserList', 'UserDict', 'Queue', 'Empty',
'zip_longest', 'map', 'string', 'string_t',
'long_t', 'text_t', 'range', 'int_types', 'items', 'keys', 'values',
'nextfun', 'reraise', 'WhateverIO', 'with_metaclass',
'OrderedDict', 'THREAD_TIMEOUT_MAX', 'format_d',
'class_property', 'reclassmethod', 'create_module',
'recreate_module', 'monotonic']
# ...
from kombu.five import monotonic
#celery/worker/autoscale.py
# ...
from celery.five import monotonic
#kombu/five.py
import vine.five
sys.modules[__name__] = vine.five
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment