Did I find the right examples for you? yes no      Crawl my project      Python Jobs

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

src/a/b/Abe-0.7.2/Abe/DataStore.py   Abe(Download)
            file = open(filename, "rb")
            try:
                ds.map_file(file, 0)
            except:
                # mmap can fail on an empty file, but empty files are okay.
                    ds.read_cursor = 0
                else:
                    ds.map_file(file, 0)
            finally:
                file.close()

src/a/b/Abe-0.7.2/Abe/mixup.py   Abe(Download)
    ds = BCDataStream.BCDataStream()
    file = open(args.blkfile, "rb")
    ds.map_file(file, 0)
    file.close()
    mixup_blocks(store, ds, int(args.count), None, int(args.seed or 0))

src/b/i/bitcoin-abe-HEAD/Abe/mixup.py   bitcoin-abe(Download)
    ds = BCDataStream.BCDataStream()
    file = open(args.blkfile, "rb")
    ds.map_file(file, 0)
    file.close()
    mixup_blocks(store, ds, int(args.count), None, int(args.seed or 0))

src/p/a/passe-partout-HEAD/pp/pp_lineage.py   passe-partout(Download)
  def Update(self, filename):
    """ Update map of transaction ancestry.
        heir tx hash -> progenitor tx hash """
    ds = BCDataStream.BCDataStream()
    ds.map_file(open(filename, 'rb'), 0)