Did I find the right examples for you? yes no

All Samples(2)  |  Call(2)  |  Derive(0)  |  Import(0)

src/c/l/cloud-init-HEAD/cloudinit/log.py   cloud-init(Download)
            am_tried += 1
            # Assume its just a string if not a filename
            if log_cfg.startswith("/") and os.path.isfile(log_cfg):
                # Leave it as a file and do not make it look like
                # something that is a file (but is really a buffer that

src/p/r/presemt-HEAD/presemt/document.py   presemt(Download)
    def decode_thumb(self, thumb):
        header = 'data:image/jpeg;base64,'
        w, h, data = thumb
        if not data.startswith('data:image/jpeg;base64,'):
            return None