Skip to content

Commit

Permalink
Run black again
Browse files Browse the repository at this point in the history
  • Loading branch information
msabramo committed Oct 10, 2023
1 parent 50fd92b commit 753c717
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions src/watchdog/observers/inotify.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,9 +119,7 @@ class InotifyEmitter(EventEmitter):
Optional[Iterable[:class:`watchdog.events.FileSystemEvent`]]
"""

def __init__(
self, event_queue, watch, timeout=DEFAULT_EMITTER_TIMEOUT, event_filter=None
):
def __init__(self, event_queue, watch, timeout=DEFAULT_EMITTER_TIMEOUT, event_filter=None):
super().__init__(event_queue, watch, timeout, event_filter)
self._lock = threading.Lock()
self._inotify = None
Expand All @@ -140,15 +138,11 @@ def queue_events(self, timeout, full_events=False):
# If "full_events" is true, then the method will report unmatched move events as separate events
# This behavior is by default only called by a InotifyFullEmitter
if self._inotify is None:
logger.error(
"InotifyEmitter.queue_events() called when the thread is inactive"
)
logger.error("InotifyEmitter.queue_events() called when the thread is inactive")
return
with self._lock:
if self._inotify is None:
logger.error(
"InotifyEmitter.queue_events() called when the thread is inactive"
)
logger.error("InotifyEmitter.queue_events() called when the thread is inactive")
return
event = self._inotify.read_event()
if event is None:
Expand Down

0 comments on commit 753c717

Please sign in to comment.