summaryrefslogtreecommitdiffstats
path: root/yt_dlp/socks.py
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-08-05 09:06:10 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-08-05 09:06:10 +0000
commit7e21328585afda6d66f98ca476301680eeffac32 (patch)
tree266a4e7b20443f94572748781d71fc0375a15037 /yt_dlp/socks.py
parentAdding upstream version 2024.05.27. (diff)
downloadyt-dlp-7e21328585afda6d66f98ca476301680eeffac32.tar.xz
yt-dlp-7e21328585afda6d66f98ca476301680eeffac32.zip
Adding upstream version 2024.07.01.upstream/2024.07.01
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r--yt_dlp/socks.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/yt_dlp/socks.py b/yt_dlp/socks.py
index b4957ac..e553a5f 100644
--- a/yt_dlp/socks.py
+++ b/yt_dlp/socks.py
@@ -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',
}