changeset 40258 | 2f47703c5489 |
parent 40085 | aa41f1b01f31 |
child 40302 | af2306bf7d5d |
40257:c3970be8deca | 40258:2f47703c5489 |
---|---|
2431 def remove(self): |
2431 def remove(self): |
2432 util.unlink(self._path) |
2432 util.unlink(self._path) |
2433 |
2433 |
2434 def write(self, data, flags, **kwargs): |
2434 def write(self, data, flags, **kwargs): |
2435 assert not flags |
2435 assert not flags |
2436 with open(self._path, "w") as f: |
2436 with open(self._path, "wb") as f: |
2437 f.write(data) |
2437 f.write(data) |