1
0
Fork 0
mirror of https://github.com/ytdl-org/youtube-dl.git synced 2024-11-18 16:26:23 +00:00

[compat] Replace deficient ChainMap class in Py3.3 and earlier

* fix version check
This commit is contained in:
dirkf 2022-08-26 12:22:01 +01:00 committed by Bartosz Białas
parent cdfc866e64
commit 7b4e2290be

View file

@ -3005,7 +3005,7 @@ except ImportError:
try: try:
from collections import ChainMap as compat_collections_chain_map from collections import ChainMap as compat_collections_chain_map
# Py3.3's ChainMap is deficient # Py3.3's ChainMap is deficient
if sys.version_info <= (3, 3): if sys.version_info < (3, 4):
raise ImportError raise ImportError
except ImportError: except ImportError:
# Py <= 3.3 # Py <= 3.3