From 1e9093f8cbe117d50451a204f513fea78ef6abfb Mon Sep 17 00:00:00 2001 From: Paul Sokolovsky Date: Fri, 23 Dec 2016 17:24:24 +0300 Subject: examples/hwapi/hwconfig_console: Don't alloc memory in value(). --- examples/hwapi/hwconfig_console.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'examples/hwapi/hwconfig_console.py') diff --git a/examples/hwapi/hwconfig_console.py b/examples/hwapi/hwconfig_console.py index 7355571a10..4b0b0d79bd 100644 --- a/examples/hwapi/hwconfig_console.py +++ b/examples/hwapi/hwconfig_console.py @@ -3,10 +3,10 @@ class LEDClass: def __init__(self, id): - self.id = id + self.id = "LED(%d):" % id def value(self, v): - print("LED(%d):" % self.id, v) + print(self.id, v) LED = LEDClass(1) -- cgit v1.2.3