def handle_comment(self, token_text):
    if self.input_wanted_newline:
        self.append_newline(preserve_statement_flags=True)
    if (not self.input_wanted_newline):
        self.trim_output(True)
    self.output_space_before_token = True
    self.append_token(token_text)
    self.append_newline(preserve_statement_flags=True)
def handle_comment(self, token_text):
    if self.input_wanted_newline:
        self.append_newline(preserve_statement_flags=True)
    if (not self.input_wanted_newline):
        self.trim_output(True)
    self.output_space_before_token = True
    self.append_token(token_text)
    self.append_newline(preserve_statement_flags=True)