MCPcopy
hub / github.com/mitmproxy/mitmproxy / modified

Method modified

mitmproxy/flow.py:201–208  ·  view source on GitHub ↗

`True` if this file has been modified by a user, `False` otherwise.

(self)

Source from the content-addressed store, hash-verified

199 return f
200
201 def modified(self):
202 """
203 `True` if this file has been modified by a user, `False` otherwise.
204 """
205 if self._backup:
206 return self._backup != self.get_state()
207 else:
208 return False
209
210 def backup(self, force=False):
211 """

Callers 8

test_backupMethod · 0.80
test_revertFunction · 0.80
makeFunction · 0.80
flow_to_jsonFunction · 0.80
postMethod · 0.80
revertMethod · 0.80

Calls 1

get_stateMethod · 0.95

Tested by 4

test_backupMethod · 0.64
test_revertFunction · 0.64