(self, filename, content, binary=False)
Writes given content to given filename.
Writes given content to given filename.
Writes given content to given filename .
def write(self, filename, content, binary=False):
        """Writes given content to given filename."""
        self._raise_if_none()
        fn = path_join(self.path, filename)

        if binary:
            flags = 'wb'
        else:
            flags = 'w'


        with open(fn, flags) as f:
            f.write(content)
def write ( self , filename , content , binary = False ) : self . _raise_if_none ( ) fn = path_join ( self . path , filename ) if binary : flags = 'wb' else : flags = 'w' with open ( fn , flags ) as f : f . write ( content )