mirror of
https://codeberg.org/polarisfm/youtube-dl
synced 2025-01-08 14:17:54 +01:00
Remove unused function
This commit is contained in:
parent
e58f3a61fe
commit
4a95f62d1d
@ -1,9 +1,7 @@
|
|||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
# coding: utf-8
|
# coding: utf-8
|
||||||
import errno
|
import errno
|
||||||
import os
|
|
||||||
|
|
||||||
from youtube_dl.compat import compat_st_mtime
|
|
||||||
from youtube_dl.utils import locked_file
|
from youtube_dl.utils import locked_file
|
||||||
|
|
||||||
|
|
||||||
|
@ -2978,14 +2978,6 @@ else:
|
|||||||
return ctypes.WINFUNCTYPE(*args, **kwargs)
|
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__ = [
|
__all__ = [
|
||||||
'compat_HTMLParseError',
|
'compat_HTMLParseError',
|
||||||
'compat_HTMLParser',
|
'compat_HTMLParser',
|
||||||
|
Loading…
Reference in New Issue
Block a user