mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-08-01 20:29:00 +00:00
tools: Fix bitmap converter print syntax
Use Python 3 print function syntax so bitmap_converter.py can be parsed by current Python interpreters while preserving the existing usage message and exit path. Generated-by: OpenAI Codex Signed-off-by: Old-Ding <35417409+Old-Ding@users.noreply.github.com>
This commit is contained in:
parent
6eead56aa9
commit
c0228d7b57
1 changed files with 1 additions and 1 deletions
|
|
@ -120,7 +120,7 @@ if __name__ == '__main__':
|
|||
import os.path
|
||||
|
||||
if len(sys.argv) != 3:
|
||||
print "Usage: bitmap_converter.py source.png output.cxx"
|
||||
print("Usage: bitmap_converter.py source.png output.cxx")
|
||||
sys.exit(1)
|
||||
|
||||
img = Image.open(sys.argv[1]).convert("RGB")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue