micropython: add micropython component
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
try:
|
||||
import uio as io
|
||||
except ImportError:
|
||||
import io
|
||||
|
||||
# test __enter__/__exit__
|
||||
with io.StringIO() as b:
|
||||
b.write("foo")
|
||||
print(b.getvalue())
|
Reference in New Issue
Block a user