diff options
author | Damien George <damien@micropython.org> | 2024-01-29 13:04:20 +1100 |
---|---|---|
committer | Damien George <damien@micropython.org> | 2024-01-29 13:07:25 +1100 |
commit | 40687451bbad09386aa64d03d4aab18da8e01706 (patch) | |
tree | c4fb8817eadbc5c3a741f4a8d0ed82d74cf85db7 /tests | |
parent | 7211bafb336b0a22746481489c3252085e78b42a (diff) | |
download | micropython-40687451bbad09386aa64d03d4aab18da8e01706.tar.gz micropython-40687451bbad09386aa64d03d4aab18da8e01706.zip |
tests/extmod/framebuf_polygon.py: Replace sys.stdout.write with print.
So the test doesn't depend on the `sys` module.
Signed-off-by: Damien George <damien@micropython.org>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/extmod/framebuf_polygon.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/tests/extmod/framebuf_polygon.py b/tests/extmod/framebuf_polygon.py index 03130b3bf0..da05be2c4d 100644 --- a/tests/extmod/framebuf_polygon.py +++ b/tests/extmod/framebuf_polygon.py @@ -1,5 +1,3 @@ -import sys - try: import framebuf from array import array @@ -18,8 +16,8 @@ def print_buffer(buffer, width, height): for row in range(height): for col in range(width): val = buffer[(row * width) + col] - sys.stdout.write(" {:02x}".format(val) if val else " ··") - sys.stdout.write("\n") + print(" {:02x}".format(val) if val else " ··", end="") + print() buf = bytearray(70 * 70) |