mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2025-12-06 06:45:00 +01:00
[cleanup] Add more ruff rules (#10149)
Authored by: seproDev Reviewed-by: bashonly <88596187+bashonly@users.noreply.github.com> Reviewed-by: Simon Sawicki <contact@grub4k.xyz>
This commit is contained in:
parent
db50f19d76
commit
add96eb9f8
915 changed files with 7027 additions and 7246 deletions
|
|
@ -60,8 +60,8 @@ class ProxyError(OSError):
|
|||
|
||||
class InvalidVersionError(ProxyError):
|
||||
def __init__(self, expected_version, got_version):
|
||||
msg = ('Invalid response version from server. Expected {:02x} got '
|
||||
'{:02x}'.format(expected_version, got_version))
|
||||
msg = (f'Invalid response version from server. Expected {expected_version:02x} got '
|
||||
f'{got_version:02x}')
|
||||
super().__init__(0, msg)
|
||||
|
||||
|
||||
|
|
@ -71,7 +71,7 @@ class Socks4Error(ProxyError):
|
|||
CODES = {
|
||||
91: 'request rejected or failed',
|
||||
92: 'request rejected because SOCKS server cannot connect to identd on the client',
|
||||
93: 'request rejected because the client program and identd report different user-ids'
|
||||
93: 'request rejected because the client program and identd report different user-ids',
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -88,7 +88,7 @@ class Socks5Error(ProxyError):
|
|||
0x07: 'Command not supported',
|
||||
0x08: 'Address type not supported',
|
||||
0xFE: 'unknown username or invalid password',
|
||||
0xFF: 'all offered authentication methods were rejected'
|
||||
0xFF: 'all offered authentication methods were rejected',
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue