parameters: (line, comments=None)
return_statement: return line, comments, new_comments
docstring: Removes comments from import line.
docstring_summary: Removes comments from import line.
docstring_tokens: Removes comments from import line .
function: def _strip_comments(line, comments=None):
          """Removes comments from import line."""
          if comments is None:
              comments = []
  
          new_comments = False
          comment_start = line.find("#")
          if comment_start != -1:
              comments.append(line[comment_start + 1:].strip())
              new_comments = True
              line = line[:comment_start]
  
          return line, comments, new_comments
function_tokens: def _strip_comments ( line , comments = None ) : if comments is None : comments = [ ] new_comments = False comment_start = line . find ( "#" ) if comment_start != - 1 : comments . append ( line [ comment_start + 1 : ] . strip ( ) ) new_comments = True line = line [ : comment_start ] return line , comments , new_comments