Save the given region to a file

    Parameters
    ----------
    region : :class:`AegeanTools.regions.Region`
        A region.

    filename : str
        Output file name.
340463
def save_region(region, filename):
    
    region.save(filename)
    logging.info("Wrote {0}".format(filename))
    return
139357
def save(filename, html):
    
    try:
        out_file = open(filename, "w")
        out_file.write(html)
        out_file.close()
    except IOError as ex:
        parser.error("Could not write baked HTML to local file {name}. ({ex})".format(name=filename, ex=ex))
1244764
def save(self, filename, compression=6, fformat=None,
             thumbnail_name=None, thumbnail_size=None):
        
        self.pil_save(filename, compression, fformat,
                      thumbnail_name, thumbnail_size)
592977
def save(self, filename='classifier.dump'):
        
        ofile = open(filename,'w+')
        pickle.dump(self.classifier, ofile)
        ofile.close()
1349701
def save(self, filename):
        ''''''
        f = open(filename, mode='w')
        f.write("QGC WPL 110\n")
        for w in self.wpoints:
            if getattr(w, 'comment', None):
                f.write("# %s\n" % w.comment)
            f.write("%u\t%u\t%u\t%u\t%f\t%f\t%f\t%f\t%f\t%f\t%f\t%u\n" % (
                w.seq, w.current, w.frame, w.command,
                w.param1, w.param2, w.param3, w.param4,
                w.x, w.y, w.z, w.autocontinue))
        f.close()
226600
def connect_to_region(region_name):
    
    logging.debug("Connecting to AWS region '%s'" % region_name)
    con = boto.vpc.connect_to_region(region_name)
    if not con:
        raise VpcRouteSetError("Could not establish connection to "
                               "region '%s'." % region_name)
    return con
903081
public static File saveToTempFile(Part part) throws IOException {
    String filename = getOriginalFileName(part);
    if (filename == null) {
      return null;
    }

    File file = File.createTempFile("molgenis-", "." + StringUtils.getFilenameExtension(filename));
    FileCopyUtils.copy(part.getInputStream(), new FileOutputStream(file));

    return file;
  }
399316
async def regions(self, *args, **kwargs):
        

        return await self._makeApiCall(self.funcinfo["regions"], *args, **kwargs)
84359
def dump(self, filename):
        
        f = open(filename, 'w')
        cPickle.dump(self, f)
286093
def save(self, filename):
        
        clibrebound.reb_output_binary(byref(self), c_char_p(filename.encode("ascii")))
1266230
def to_file(self, filename):
		
		with open(filename, 'wb') as f:
			f.write(self.to_bytes())
1273367
def save(self, filename, content):
        
        with open(filename, "w") as f:
            if hasattr(content, '__iter__'):
                f.write('\n'.join([row for row in content]))
            else:
                print('WRINGI CONTWETESWREWR')
                f.write(str(content))
448572
def save(self, filename):
        ''''''
        try:
            f = open(filename, mode='w')
        except Exception:
            return False
        for k in self.list():
            f.write("%s=%s\n" % (k, self.get(k)))
        f.close()
        return True
1173042
def save(self, filename):
        """"""
        with open(filename, 'w') as fp:
            fp.write(str(self))
493881
def save_as(self, filename: str) -> None:
        
        lib.TCOD_image_save(self.image_c, filename.encode("utf-8"))
231740
def save(self, filename):
        
        dirname = os.path.dirname(filename)
        if not os.path.exists(dirname):
            os.makedirs(dirname)
        
        projex.text.xmlindent(self._xroot)
        xtree = ElementTree.ElementTree(self._xroot)
        xtree.write(filename, encoding=self.encoding(), xml_declaration=True)
        return True
1008859
def save_to_file(self, text, filename, name):
        '''
        
        '''
        self._push(self._driver.save_to_file, (text, filename), name)