diff options
| author | 2020-11-10 03:16:35 +0100 | |
|---|---|---|
| committer | 2020-11-10 03:16:35 +0100 | |
| commit | b8c12d08c9b8dc4e0bf39fcc242d67a3532d0fd0 (patch) | |
| tree | 5ae4313b5053e41db78f141d9121ccdcfd7e3d07 | |
| parent | Cache user fetched symbols through redis. (diff) | |
Add package in front of symbol as default fallback
Previously weo nly added the package name for symbols
that shared are named name with an another symbol, but
in some edge cases we can get to this point with symbols
that weren't renamed but have name conflicts, causing some
to get overwritten completely without the capturing condition
| -rw-r--r-- | bot/exts/info/doc/_cog.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/bot/exts/info/doc/_cog.py b/bot/exts/info/doc/_cog.py index ab3ad159a..264d6e31e 100644 --- a/bot/exts/info/doc/_cog.py +++ b/bot/exts/info/doc/_cog.py @@ -260,8 +260,7 @@ class DocCog(commands.Cog): self.doc_symbols[overridden_symbol] = original_symbol self.renamed_symbols.add(overridden_symbol) - # If renamed `symbol` already exists, add library name in front to differentiate between them. - elif symbol in self.renamed_symbols: + else: symbol = f"{api_package_name}.{symbol}" self.renamed_symbols.add(symbol) |