Skip to content

Commit

Permalink
Merge 80a0854 into 78670d8
Browse files Browse the repository at this point in the history
  • Loading branch information
jcea committed Jan 12, 2018
2 parents 78670d8 + 80a0854 commit 9d05e59
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions inotify/adapters.py
Expand Up @@ -140,11 +140,9 @@ def _get_event_names(self, event_type):

return names

def _handle_inotify_event(self, wd, event_type):
def _handle_inotify_event(self, wd):
"""Handle a series of events coming-in from inotify."""

names = self._get_event_names(event_type)

b = os.read(wd, 1024)
if not b:
return
Expand Down Expand Up @@ -222,11 +220,11 @@ def event_gen(

# Process events.

for fd, event_type in events:
for fd, _ in events:
# (fd) looks to always match the inotify FD.

for (header, type_names, path, filename) \
in self._handle_inotify_event(fd, event_type):
in self._handle_inotify_event(fd):
last_hit_s = time.time()

e = (header, type_names, path, filename)
Expand Down

0 comments on commit 9d05e59

Please sign in to comment.