diff --git a/youtube_dl/archive.py b/youtube_dl/archive.py index 13106277b..e7940b9db 100644 --- a/youtube_dl/archive.py +++ b/youtube_dl/archive.py @@ -1,9 +1,7 @@ #!/usr/bin/env python # coding: utf-8 import errno -import os -from youtube_dl.compat import compat_st_mtime from youtube_dl.utils import locked_file diff --git a/youtube_dl/compat.py b/youtube_dl/compat.py index 3172b5105..2f43d987c 100644 --- a/youtube_dl/compat.py +++ b/youtube_dl/compat.py @@ -2978,14 +2978,6 @@ else: return ctypes.WINFUNCTYPE(*args, **kwargs) -def compat_st_mtime(path): - """ Py3 has nanosecond accuracy on modification time of file """ - try: - return os.stat(path).st_mtime_ns - except ImportError: - return os.stat(path).st_mtime - - __all__ = [ 'compat_HTMLParseError', 'compat_HTMLParser',