ok windows is just gonna have to make do

This commit is contained in:
ed 2022-11-27 22:05:38 +00:00
parent 36dc8cd686
commit 6a96c62fde

View file

@ -984,7 +984,7 @@ class HttpCli(object):
ret = '<?xml version="1.0" encoding="{}"?>\n'.format(uenc)
ret += ET.tostring(xroot).decode("utf-8")
if not bos.path.isfile(abspath):
if self.can_write and not bos.path.isfile(abspath):
with open(fsenc(abspath), "wb") as _:
pass