[cleanup] Deprecate more compat functions (#11439)
Authored by: seproDev
This commit is contained in:
parent
1d253b0a27
commit
f95a92b3d0
38 changed files with 218 additions and 363 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue