From 553be710677bd450b00abb4a95680b506bfcb574 Mon Sep 17 00:00:00 2001 From: Frediano Ziglio Date: Tue, 21 Jul 2015 17:45:34 +0100 Subject: codegen: Optimize code indentation and avoid a loop Signed-off-by: Frediano Ziglio --- python_modules/codegen.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'python_modules/codegen.py') diff --git a/python_modules/codegen.py b/python_modules/codegen.py index 55500b7..02ffdb9 100644 --- a/python_modules/codegen.py +++ b/python_modules/codegen.py @@ -130,8 +130,7 @@ class CodeWriter: return if self.at_line_start: - for i in range(self.indentation): - self.out.write(u" ") + self.out.write(u" " * self.indentation) self.at_line_start = False self.out.write(s) return self -- cgit