diff options
author | sepro <sepro@sepr0.com> | 2024-12-02 16:29:30 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-12-02 16:29:30 +0100 |
commit | d8fb3490863653182864d2a53522f350d67a9ff8 (patch) | |
tree | fa12606719269bddb36b5cc46995dda1a1a3bbc4 /yt_dlp/cookies.py | |
parent | 2bea7936323ca4b6f3b9b1fdd892566223e30efa (diff) |
[cleanup] Bump ruff to 0.8.x (#11608)
Authored by: seproDev
Diffstat (limited to 'yt_dlp/cookies.py')
-rw-r--r-- | yt_dlp/cookies.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/yt_dlp/cookies.py b/yt_dlp/cookies.py index d5b0d3991..772433b0f 100644 --- a/yt_dlp/cookies.py +++ b/yt_dlp/cookies.py @@ -1276,8 +1276,8 @@ class YoutubeDLCookieJar(http.cookiejar.MozillaCookieJar): def _really_save(self, f, ignore_discard, ignore_expires): now = time.time() for cookie in self: - if (not ignore_discard and cookie.discard - or not ignore_expires and cookie.is_expired(now)): + if ((not ignore_discard and cookie.discard) + or (not ignore_expires and cookie.is_expired(now))): continue name, value = cookie.name, cookie.value if value is None: |