soco.compat module
This module contains various compatibility definitions and imports.
It is used internally by SoCo to ensure compatibility with Python 2.
- soco.compat.with_metaclass(meta, *bases)[source]
A Python 2/3 compatible way of declaring a metaclass.
Taken from Jinja 2 via python-future. License: BSD. Use it like this:
class MyClass(with_metaclass(MyMetaClass, BaseClass)): pass