def __split_line_comment(line):
  """
    Splits a line into the data part and the comment part
    @ In, line, string, line
    @ Out, (data, comment), (string, string), The comment part maybe empty
  """
  data = ''
  comment = ''
  in_string = False
  in_comment = False
  for char in line:
    if char == "'":
      in_string = not in_string
    if char == '#' and not in_string:
      in_comment = True
    if in_comment:
      comment += char
    else:
      data += char
  return (data, comment)