summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Liechti <cliechti@gmx.net>2016-10-05 03:24:02 +0200
committerChris Liechti <cliechti@gmx.net>2016-10-05 03:24:02 +0200
commitcc52350cf0d6a8fbb26fe37f0bb370fdeea55e80 (patch)
treeb11394ede4a3564f0f9e04d9008c9cbfa648cf53
parentd6112a0bb36f12e92f7a98337636aa0cd5a39253 (diff)
downloadpyserial-git-cc52350cf0d6a8fbb26fe37f0bb370fdeea55e80.tar.gz
threaded: use repr in example
-rw-r--r--serial/threaded/__init__.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/serial/threaded/__init__.py b/serial/threaded/__init__.py
index 2a61e31..74b6924 100644
--- a/serial/threaded/__init__.py
+++ b/serial/threaded/__init__.py
@@ -3,7 +3,7 @@
# Working with threading and pySerial
#
# This file is part of pySerial. https://github.com/pyserial/pyserial
-# (C) 2015 Chris Liechti <cliechti@gmx.net>
+# (C) 2015-2016 Chris Liechti <cliechti@gmx.net>
#
# SPDX-License-Identifier: BSD-3-Clause
"""\
@@ -273,7 +273,7 @@ if __name__ == '__main__':
self.write_line('hello world')
def handle_line(self, data):
- sys.stdout.write('line received: {}\n'.format(repr(data)))
+ sys.stdout.write('line received: {!r}\n'.format(data))
def connection_lost(self, exc):
if exc: