(s: str, maxlen: int)
| 145 | |
| 146 | |
| 147 | def fixlen(s: str, maxlen: int) -> str: |
| 148 | if len(s) <= maxlen: |
| 149 | return s.ljust(maxlen) |
| 150 | else: |
| 151 | return s[0 : maxlen - len(SYMBOL_ELLIPSIS)] + SYMBOL_ELLIPSIS |
| 152 | |
| 153 | |
| 154 | def fixlen_r(s: str, maxlen: int) -> str: |
no outgoing calls
no test coverage detected
searching dependent graphs…