mirror of
https://github.com/pocketpy/pocketpy
synced 2025-10-20 03:20:18 +00:00
Update builtins.h
This commit is contained in:
parent
6b9002d9d6
commit
d1f7b02d7c
@ -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):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user