Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def write(self, run):
if self.what is None:
self.what = TracedFile.WRITTEN
elif self.what == TracedFile.ONLY_READ:
self.what = TracedFile.READ_THEN_WRITTEN
if run is not None:
if self.runs[run] is None:
self.runs[run] = TracedFile.WRITTEN
elif self.runs[run] == TracedFile.ONLY_READ:
self.runs[run] = TracedFile.READ_THEN_WRITTEN
def write(self, run):
if self.what is None:
self.what = TracedFile.WRITTEN
elif self.what == TracedFile.ONLY_READ:
self.what = TracedFile.READ_THEN_WRITTEN
if run is not None:
if self.runs[run] is None:
self.runs[run] = TracedFile.WRITTEN
elif self.runs[run] == TracedFile.ONLY_READ:
self.runs[run] = TracedFile.READ_THEN_WRITTEN
def write(self, run):
if self.what is None:
self.what = TracedFile.WRITTEN
elif self.what == TracedFile.ONLY_READ:
self.what = TracedFile.READ_THEN_WRITTEN
if run is not None:
if self.runs[run] is None:
self.runs[run] = TracedFile.WRITTEN
elif self.runs[run] == TracedFile.ONLY_READ:
self.runs[run] = TracedFile.READ_THEN_WRITTEN
def write(self, run):
if self.what is None:
self.what = TracedFile.WRITTEN
elif self.what == TracedFile.ONLY_READ:
self.what = TracedFile.READ_THEN_WRITTEN
if run is not None:
if self.runs[run] is None:
self.runs[run] = TracedFile.WRITTEN
elif self.runs[run] == TracedFile.ONLY_READ:
self.runs[run] = TracedFile.READ_THEN_WRITTEN