Python2 to Python3 utilities - kombu.five

celery.five

Compatibility implementations of features only available in newer Python versions.

kombu.five.exec_(code, globs=None, locs=None)[source]

Execute code in a namespace.

kombu.five.items(d)[source]
kombu.five.keys(d)[source]
kombu.five.monotonic()
kombu.five.nextfun(it)[source]
kombu.five.reraise(tp, value, tb=None)[source]
class kombu.five.timespec[source]
tv_nsec

Structure/Union member

tv_sec

Structure/Union member

kombu.five.values(d)[source]
kombu.five.with_metaclass(Type, skip_attrs=set(['__dict__', '__weakref__']))[source]

Class decorator to set metaclass.

Works with both Python 3 and Python 3 and it does not add an extra class in the lookup order like six.with_metaclass does (that is – it copies the original class instead of using inheritance).