File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -376,9 +376,7 @@ def is_user_rename(current: object) -> bool:
376376 and must be left alone.
377377 """
378378 return (
379- isinstance (current , str )
380- and bool (current )
381- and not TIMESTAMP_RE .match (current )
379+ isinstance (current , str ) and bool (current ) and not TIMESTAMP_RE .match (current )
382380 )
383381
384382
Original file line number Diff line number Diff line change @@ -156,7 +156,9 @@ def recently_nudged(session_id: str) -> bool:
156156 """Whether this session already got a nudge inside the dedupe window."""
157157 now = time .time ()
158158 try :
159- previous_id , previous_stamp = LAST_NUDGE_PATH .read_text (encoding = "UTF-8" ).split ()
159+ previous_id , previous_stamp = LAST_NUDGE_PATH .read_text (
160+ encoding = "UTF-8"
161+ ).split ()
160162 if previous_id == session_id and now - float (previous_stamp ) < DEDUPE_SECONDS :
161163 return True
162164 except (OSError , ValueError ):
You can’t perform that action at this time.
0 commit comments