diff options
| author | 2018-12-27 21:52:09 +0100 | |
|---|---|---|
| committer | 2018-12-27 21:52:09 +0100 | |
| commit | db439ebdba02a352e9f3551e04d17a922a2b6ec6 (patch) | |
| tree | 85dd748da038db031cabcdc9aea5a0b35a9fe1f0 | |
| parent | Merge pull request #226 from python-discord/group-dm-invites (diff) | |
| parent | Merge branch 'master' into patch-1 (diff) | |
Merge pull request #212 from Modelmat/patch-1
Makes generating `...:` indents faster
Diffstat (limited to '')
| -rw-r--r-- | bot/cogs/eval.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bot/cogs/eval.py b/bot/cogs/eval.py index 651aa048b..9e09b3aa0 100644 --- a/bot/cogs/eval.py +++ b/bot/cogs/eval.py @@ -66,9 +66,9 @@ class CodeEval: # far enough to align them. # we first `str()` the line number # then we get the length - # and do a simple {:<LENGTH} + # and use `str.rjust()` # to indent it. - start = f"{'':<{len(str(self.ln))+2}}...: " + start = "...:".rjust(len(self.ln) + 2) if i == len(lines) - 2: if line.startswith("return"): |