mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Apply refurb/ruff rule FURB116 (#11839)
This commit is contained in:
parent
97b7e63739
commit
98f5ddea78
@ -524,7 +524,7 @@ class TexinfoTranslator(SphinxTranslator):
|
||||
try:
|
||||
sid = self.short_ids[id]
|
||||
except KeyError:
|
||||
sid = hex(len(self.short_ids))[2:]
|
||||
sid = f'{len(self.short_ids):x}'
|
||||
self.short_ids[id] = sid
|
||||
return sid
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user