summaryrefslogtreecommitdiffstatshomepage
path: root/tools/pyboard.py
diff options
context:
space:
mode:
Diffstat (limited to 'tools/pyboard.py')
-rwxr-xr-xtools/pyboard.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/pyboard.py b/tools/pyboard.py
index 413ec1329c..99c4b850c1 100755
--- a/tools/pyboard.py
+++ b/tools/pyboard.py
@@ -275,7 +275,7 @@ def main():
sys.exit(1)
if args.command is not None:
- execbuffer(bytes(args.command, 'utf-8'))
+ execbuffer(args.command.encode('utf-8'))
for filename in args.files:
with open(filename, 'rb') as f: