1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2025-11-01 07:05:14 +00:00

[cleanup] Bump ruff to 0.5.x (#10282)

Authored by: seproDev
This commit is contained in:
sepro
2024-06-29 17:30:57 +02:00
committed by GitHub
parent 54a63e80af
commit 7814c50948
5 changed files with 16 additions and 20 deletions

View File

@@ -230,9 +230,7 @@ class Urllib3LoggingFilter(logging.Filter):
def filter(self, record):
# Ignore HTTP request messages since HTTPConnection prints those
if record.msg == '%s://%s:%s "%s %s %s" %s %s':
return False
return True
return record.msg != '%s://%s:%s "%s %s %s" %s %s'
class Urllib3LoggingHandler(logging.Handler):