Tweak utime call

Apparently, times is not a keyword argument either in Python 2.7 ;)
This commit is contained in:
Xavier Fernandez 2019-07-12 23:11:24 +02:00 committed by GitHub
parent 8e57084a94
commit 3e8ccc99e5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -237,6 +237,6 @@ class Path(_base):
def touch(self):
with open(self, "a") as fp:
path = fp.fileno() if os.utime in supports_fd else self
os.utime(path, times=None) # times is not optional on Python 2.7
os.utime(path, None) # times is not optional on Python 2.7
curdir = Path(os.path.curdir)