mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice-protocol
synced 2025-12-28 08:01:23 +00:00
codegen: Optimize code indentation and avoid a loop
Signed-off-by: Frediano Ziglio <fziglio@redhat.com>
This commit is contained in:
parent
233c463e34
commit
553be71067
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user