Flush left. >>> _padright(6, '\u044f\u0439\u0446\u0430') == '\u044f\u0439\u0446\u0430 ' True
(width, s)
| 1076 | |
| 1077 | |
| 1078 | def _padright(width, s): |
| 1079 | """Flush left. |
| 1080 | |
| 1081 | >>> _padright(6, '\u044f\u0439\u0446\u0430') == '\u044f\u0439\u0446\u0430 ' |
| 1082 | True |
| 1083 | |
| 1084 | """ |
| 1085 | fmt = "{0:<%ds}" % width |
| 1086 | return fmt.format(s) |
| 1087 | |
| 1088 | |
| 1089 | def _padboth(width, s): |