Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Reduce the set of events that trigger a reload.

This seems to avoid multiple reloads.
  • Loading branch information...
commit 47217f2f290264b0467a079492779cbf3cbfa4f0 1 parent 8f09ec6
@aaugustin aaugustin authored
Showing with 1 addition and 9 deletions.
  1. +1 −9 django/utils/autoreload.py
View
10 django/utils/autoreload.py
@@ -144,15 +144,7 @@ def kqueue_code_changed():
_filter = select.KQ_FILTER_VNODE
flags = select.KQ_EV_ADD
- fflags = (
- select.KQ_NOTE_DELETE |
- select.KQ_NOTE_WRITE |
- select.KQ_NOTE_EXTEND |
- select.KQ_NOTE_ATTRIB |
- select.KQ_NOTE_LINK |
- select.KQ_NOTE_RENAME |
- select.KQ_NOTE_REVOKE
- )
+ fflags = select.KQ_NOTE_DELETE | select.KQ_NOTE_WRITE | select.KQ_NOTE_RENAME
kevents = [select.kevent(fd, _filter, flags, fflags) for fd in fds]
kqueue.control(kevents, 1)
Please sign in to comment.
Something went wrong with that request. Please try again.