Skip to content

Commit 4263ce4

Browse files
committed
Include _io on WASM, just not FileIO
1 parent e63073b commit 4263ce4

File tree

3 files changed

+183
-156
lines changed

3 files changed

+183
-156
lines changed

Lib/io.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,10 @@ class BufferedIOBase(_io._BufferedIOBase, IOBase):
7878
class TextIOBase(_io._TextIOBase, IOBase):
7979
__doc__ = _io._TextIOBase.__doc__
8080

81-
RawIOBase.register(FileIO)
81+
try:
82+
RawIOBase.register(FileIO)
83+
except NameError:
84+
pass
8285

8386
for klass in (BytesIO, BufferedReader, BufferedWriter):#, BufferedRandom,
8487
#BufferedRWPair):

0 commit comments

Comments
 (0)