aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpukkandan <pukkandan.ytdlp@gmail.com>2023-07-22 10:17:36 +0530
committerpukkandan <pukkandan.ytdlp@gmail.com>2023-07-22 10:17:36 +0530
commit25b6e8f94679b4458550702b46e61249b875a4fd (patch)
tree972a5ffc7f10e7e776462c6b676b240c8a1cc8c9
parente7057383380d7d53815f8feaf90ca3dcbde88983 (diff)
downloadhypervideo-pre-25b6e8f94679b4458550702b46e61249b875a4fd.tar.lz
hypervideo-pre-25b6e8f94679b4458550702b46e61249b875a4fd.tar.xz
hypervideo-pre-25b6e8f94679b4458550702b46e61249b875a4fd.zip
Fix e0c4db04dc82a699bdabd9821ddc239ebe17d30a for pypy
-rw-r--r--yt_dlp/compat/types.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/yt_dlp/compat/types.py b/yt_dlp/compat/types.py
index ae7024564..4aa3b0efd 100644
--- a/yt_dlp/compat/types.py
+++ b/yt_dlp/compat/types.py
@@ -7,6 +7,7 @@ passthrough_module(__name__, 'types')
del passthrough_module
try:
- NoneType # >= 3.10
-except NameError:
+ # NB: pypy has builtin NoneType, so checking NameError won't work
+ from types import NoneType # >= 3.10
+except ImportError:
NoneType = type(None)