aboutsummaryrefslogtreecommitdiffstats
path: root/yt_dlp/utils.py
diff options
context:
space:
mode:
authorLesmiscore <nao20010128@gmail.com>2022-08-14 21:04:13 +0900
committerGitHub <noreply@github.com>2022-08-14 17:34:13 +0530
commit62b58c0936cccc6f3e5115086406c7bfaf6fc551 (patch)
treedb9dd3ee5c0cebaa46557004deba869d59f6323c /yt_dlp/utils.py
parent8f53dc44a0cc1c2d98c35740b9293462c080f5d0 (diff)
downloadhypervideo-pre-62b58c0936cccc6f3e5115086406c7bfaf6fc551.tar.lz
hypervideo-pre-62b58c0936cccc6f3e5115086406c7bfaf6fc551.tar.xz
hypervideo-pre-62b58c0936cccc6f3e5115086406c7bfaf6fc551.zip
[docs] Consistent use of `e.g.` (#4643)
Authored by: Lesmiscore
Diffstat (limited to 'yt_dlp/utils.py')
-rw-r--r--yt_dlp/utils.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/yt_dlp/utils.py b/yt_dlp/utils.py
index 39a41d5b8..e64d35936 100644
--- a/yt_dlp/utils.py
+++ b/yt_dlp/utils.py
@@ -610,7 +610,7 @@ def sanitize_open(filename, open_mode):
if sys.platform == 'win32':
import msvcrt
- # stdout may be any IO stream. Eg, when using contextlib.redirect_stdout
+ # stdout may be any IO stream, e.g. when using contextlib.redirect_stdout
with contextlib.suppress(io.UnsupportedOperation):
msvcrt.setmode(sys.stdout.fileno(), os.O_BINARY)
return (sys.stdout.buffer if hasattr(sys.stdout, 'buffer') else sys.stdout, filename)
@@ -786,8 +786,8 @@ def _htmlentity_transform(entity_with_semicolon):
if entity in html.entities.name2codepoint:
return chr(html.entities.name2codepoint[entity])
- # TODO: HTML5 allows entities without a semicolon. For example,
- # '&Eacuteric' should be decoded as 'Éric'.
+ # TODO: HTML5 allows entities without a semicolon.
+ # E.g. '&Eacuteric' should be decoded as 'Éric'.
if entity_with_semicolon in html.entities.html5:
return html.entities.html5[entity_with_semicolon]