amqp.five

celery.five

Compatibility implementations of features only available in newer Python versions.

class amqp.five.WhateverIO
write(data)
amqp.five.items(d)
amqp.five.keys(d)
amqp.five.nextfun(it)
amqp.five.reraise(tp, value, tb=None)
amqp.five.values(d)
amqp.five.with_metaclass(Type, skip_attrs={'__weakref__', '__dict__'})

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).