mirror of
https://github.com/pypa/pip
synced 2023-12-13 21:30:23 +01:00
Tweak utime call
Apparently, times is not a keyword argument either in Python 2.7 ;)
This commit is contained in:
parent
8e57084a94
commit
3e8ccc99e5
|
@ -237,6 +237,6 @@ class Path(_base):
|
||||||
def touch(self):
|
def touch(self):
|
||||||
with open(self, "a") as fp:
|
with open(self, "a") as fp:
|
||||||
path = fp.fileno() if os.utime in supports_fd else self
|
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)
|
curdir = Path(os.path.curdir)
|
||||||
|
|
Loading…
Reference in a new issue