From 4a95f62d1d70491ded689b2dd2cd1438adaa0bd4 Mon Sep 17 00:00:00 2001 From: Sergio Kef Date: Thu, 23 Apr 2020 20:38:24 +0200 Subject: [PATCH] Remove unused function --- youtube_dl/archive.py | 2 -- youtube_dl/compat.py | 8 -------- 2 files changed, 10 deletions(-) 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',