From f8e9f1f7ac3d144a1a6b7fe65f832d49a56e0d6a Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Mon, 18 Aug 2014 23:17:23 +0800 Subject: [PATCH] examples/coredev_test: use augmented assignments --- examples/coredev_test.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/coredev_test.py b/examples/coredev_test.py index 11f6c7ed0..cde57880d 100644 --- a/examples/coredev_test.py +++ b/examples/coredev_test.py @@ -21,10 +21,10 @@ class CompilerTest(AutoContext): while d*d <= x: if x % d == 0: prime = False - d = d + 1 + d += 1 if prime: self.output(x) - x = x + 1 + x += 1 self.led.set(0) if __name__ == "__main__":