소스 검색

[compat] Replace deficient ChainMap class in Py3.3 and earlier
* fix version check

dirkf 3 년 전
부모
커밋
ed5c44e7b7
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      youtube_dl/compat.py

+ 1 - 1
youtube_dl/compat.py

@@ -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