MCPcopy Index your code
hub / github.com/pyload/pyload / do_open

Method do_open

module/lib/beaker/container.py:555–564  ·  view source on GitHub ↗
(self, flags)

Source from the content-addressed store, hash-verified

553 return os.access(file, os.F_OK)
554
555 def do_open(self, flags):
556 if self.file_exists(self.file):
557 fh = open(self.file, 'rb')
558 try:
559 self.hash = cPickle.load(fh)
560 except (IOError, OSError, EOFError, cPickle.PickleError, ValueError):
561 pass
562 fh.close()
563
564 self.flags = flags
565
566 def do_close(self):
567 if self.flags == 'c' or self.flags == 'w':

Callers

nothing calls this directly

Calls 3

file_existsMethod · 0.95
loadMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected