[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
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
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):