def _padleft(width, s, has_invisible=True):
iwidth = width + len(s) - len(_strip_invisible(s))if has_invisible else width<EOL>fmt = "<STR_LIT>" % iwidth<EOL>return fmt.format(s)<EOL>
Flush right.

>>> _padleft(6, '\u044f\u0439\u0446\u0430') \
    == '  \u044f\u0439\u0446\u0430'
True