8000 tools/pyboard.py: Make -c (inline Python code) option compatible with… · unixjazz/circuitpython@e6dccaf · GitHub
[go: up one dir, main page]

Skip to content

Commit e6dccaf

Browse files
committed
tools/pyboard.py: Make -c (inline Python code) option compatible with python2.
1 parent ae58035 commit e6dccaf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/pyboard.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ def execbuffer(buf):
275275
sys.exit(1)
276276

277277
if args.command is not None:
278-
execbuffer(bytes(args.command, 'utf-8'))
278+
execbuffer(args.command.encode('utf-8'))
279279

280280
for filename in args.files:
281281
with open(filename, 'rb') as f:

0 commit comments

Comments
 (0)
0