Update builtins.h

This commit is contained in:
blueloveTH 2022-12-01 13:21:10 +08:00
parent 6b9002d9d6
commit d1f7b02d7c

View File

@ -244,6 +244,7 @@ class FileIO:
def write(self, s): def write(self, s):
assert self.mode == 'w' assert self.mode == 'w'
assert type(s) is str
jsonrpc({"method": "fwrite", "params": [self.fp, s]}) jsonrpc({"method": "fwrite", "params": [self.fp, s]})
def close(self): def close(self):