aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mitmproxy/script/reloader.py10
1 files changed, 4 insertions, 6 deletions
diff --git a/mitmproxy/script/reloader.py b/mitmproxy/script/reloader.py
index f5470bbf..0a3f5c93 100644
--- a/mitmproxy/script/reloader.py
+++ b/mitmproxy/script/reloader.py
@@ -5,12 +5,10 @@ import sys
from watchdog.events import RegexMatchingEventHandler
-if sys.platform == 'darwin': # pragma: no cover
- from watchdog.observers.polling import PollingObserver as Observer
-else:
- from watchdog.observers import Observer
-# The OSX reloader in watchdog 0.8.3 breaks when unobserving paths.
-# We use the PollingObserver instead.
+from watchdog.observers.polling import PollingObserver as Observer
+# We occasionally have watchdog errors on Windows, Linux and Mac when using the native observers.
+# After reading through the watchdog source code and issue tracker,
+# we may want to replace this with a very simple implementation of our own.
_observers = {}