def num_ini_spaces(strng):

    ini_spaces = ini_spaces_re.match(strng)
    if ini_spaces:
        return ini_spaces.end()
    else:
        return 0
Sets terminal dimensions.
dataset/ETHPy150Open ipython/ipython-py3k/IPython/utils/text.py/num_ini_spaces--crossover with--dataset/ETHPy150Open sdispater/cleo/cleo/application.py/Application.set_terminal_dimensions