mirror of
https://codeberg.org/polarisfm/youtube-dl
synced 2025-01-07 13:47:54 +01:00
Remove unused function
This commit is contained in:
parent
e58f3a61fe
commit
4a95f62d1d
@ -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
|
||||
|
||||
|
||||
|
@ -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',
|
||||
|
Loading…
Reference in New Issue
Block a user