Skip to content

Commit

Permalink
Micro-optimisation
Browse files Browse the repository at this point in the history
  • Loading branch information
kovidgoyal committed Nov 13, 2024
1 parent 80ac7d8 commit 3959627
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/calibre/utils/formatter_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,8 @@ def format(self, *args, **kw):


def _(txt):
return TranslatedStringWithRaw(txt, xlated(txt), txt, xlated(txt))
translated = xlated(txt)
return TranslatedStringWithRaw(txt, translated, txt, translated)


class StoredObjectType(Enum):
Expand Down

0 comments on commit 3959627

Please sign in to comment.