def get_indent_string(srcline):
    """
    Determines and returns how the line passed in is indented. That 
    information is used by rework() so that it can determine how much
    indentation to use to insert lines into the source. 
    """
    indent = ""
    for ch in srcline:
        if not ch.isspace():
            break
        indent += ch
    return indent