mirror of https://github.com/pypa/pip
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):
|
||||
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)
|
||||
|
|
Loading…
Reference in New Issue