MCPcopy Index your code
hub / github.com/bpython/bpython / deactivate

Method deactivate

bpython/curtsiesfrontend/filewatch.py:76–80  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

74 self.activated = True
75
76 def deactivate(self) -> None:
77 if not self.activated:
78 raise ValueError(f"{self!r} is not activated.")
79 self.observer.unschedule_all()
80 self.activated = False
81
82 def on_any_event(self, event: FileSystemEvent) -> None:
83 dirpath = os.path.dirname(event.src_path)

Callers 1

toggle_file_watchMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected