mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-23 11:31:29 +01:00
Fix e0c4db04dc
for pypy
This commit is contained in:
parent
e705738338
commit
25b6e8f946
|
@ -7,6 +7,7 @@
|
||||||
del passthrough_module
|
del passthrough_module
|
||||||
|
|
||||||
try:
|
try:
|
||||||
NoneType # >= 3.10
|
# NB: pypy has builtin NoneType, so checking NameError won't work
|
||||||
except NameError:
|
from types import NoneType # >= 3.10
|
||||||
|
except ImportError:
|
||||||
NoneType = type(None)
|
NoneType = type(None)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user