summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorPaul Sokolovsky <pfalcon@users.sourceforge.net>2015-11-07 12:10:17 +0300
committerPaul Sokolovsky <pfalcon@users.sourceforge.net>2015-11-07 12:16:11 +0300
commite6dccaf18eaaf7aeb80c51c796c2d2036ff49b6b (patch)
tree3c6f210bc3ff475c9caf882232bd20327b1a6b66
parentae5803557378ac151fe142a140fc75b94b05a7f9 (diff)
downloadmicropython-e6dccaf18eaaf7aeb80c51c796c2d2036ff49b6b.tar.gz
micropython-e6dccaf18eaaf7aeb80c51c796c2d2036ff49b6b.zip
tools/pyboard.py: Make -c (inline Python code) option compatible with python2.
-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: