As already said in another PR, this should go into ``compat.py``.