1
0
Fork 0

[cleanup] Deprecate more compat functions (#11439)

Authored by: seproDev
This commit is contained in:
sepro 2024-11-17 00:24:11 +01:00 committed by GitHub
commit f95a92b3d0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
38 changed files with 218 additions and 363 deletions

View file

@ -9,7 +9,6 @@ from ..utils import (
RetryManager,
_configuration_args,
deprecation_warning,
encodeFilename,
)
@ -151,7 +150,7 @@ class PostProcessor(metaclass=PostProcessorMetaClass):
def try_utime(self, path, atime, mtime, errnote='Cannot update utime of file'):
try:
os.utime(encodeFilename(path), (atime, mtime))
os.utime(path, (atime, mtime))
except Exception:
self.report_warning(errnote)