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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy