def cleanup_extra_whitespaces(self, text):
        return re.sub(r'(\s)\s+', r'\1', text)
Decorate a function.
dataset/ETHPy150Open mozillazg/bustard/bustard/template.py/Template.cleanup_extra_whitespaces--crossover with--dataset/ETHPy150Open openstack/oslo.db/oslo_db/sqlalchemy/enginefacade.py/_TransactionContextManager.__call__