mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-05 03:22:29 +00:00
Many code-style improvements
This commit is contained in:
@@ -18,7 +18,8 @@ class SourceBuilder:
|
||||
"""Writes a string into the source code, applying indentation if required"""
|
||||
if self.on_new_line:
|
||||
self.on_new_line = False # We're not on a new line anymore
|
||||
if string.strip(): # If the string was not empty, indent; Else it probably was a new line
|
||||
if string.strip(
|
||||
): # If the string was not empty, indent; Else it probably was a new line
|
||||
self.indent()
|
||||
|
||||
self.out_stream.write(string)
|
||||
|
Reference in New Issue
Block a user