# -*- coding: utf-8 -*-## This file is subject to the terms and conditions defined in# file 'LICENSE.txt', which is part of this source code package.#"""ProxyWriter class"""
[docs]classProxyWriter(object):"""Class to operate on more than one write at the same time Parameters ---------- object : object with the same API _description_ """def__init__(self):super().__init__()self.writers=[]def__getattribute__(self,name):writers=object.__getattribute__(self,"writers")defnewfunc(*args,**kwargs):forwinwriters:res=w.__getattribute__(name)(*args,**kwargs)returnresreturnnewfunc