Skip to content

Video editing with Python

Actually delete compat.py; remove another Py2/3 check

Tom Burrows88b95cdbe6b2
diff --git a/moviepy/compat.py b/moviepy/compat.py
deleted file mode 100644
index e97b11bb..00000000
--- a/moviepy/compat.py
+++ /dev/null
@@ -1,14 +0,0 @@
-import os
-import sys
-
-PY3=sys.version_info.major >= 3
-
-try:
- string_types = (str, unicode) # Python 2
-except NameError:
- string_types = (str) # Python 3
-
-try:
- from subprocess import DEVNULL # Python 3
-except ImportError:
- DEVNULL = open(os.devnull, 'wb') # Python 2
diff --git a/moviepy/config.py b/moviepy/config.py
index b777a0d0..710a3c8c 100644
--- a/moviepy/config.py
+++ b/moviepy/config.py
@@ -4,10 +4,7 @@ import subprocess as sp
from .config_defaults import FFMPEG_BINARY, IMAGEMAGICK_BINARY
if os.name == 'nt':
- try:
- import winreg as wr # py3k
- except ImportError:
- import _winreg as wr # py2k
+ import winreg as wr
def try_cmd(cmd):