Skip to content

Commit fe2dabf

Browse files
authored
Merge pull request #3385 from onerandomusername/patch-1
Update captization of PyPI for consistency with PyPI trademark and branding
2 parents b45390e + 3ead476 commit fe2dabf

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

bot/exts/info/pypi.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ def _get_latest_distribution_timestamp(data: dict[str, typing.Any]) -> datetime
3636
log.trace("KeyError trying to fetch upload time: data['urls'][-1]['upload_time_iso_8601']")
3737
return None
3838

39-
class PyPi(Cog):
40-
"""Cog for getting information about PyPi packages."""
39+
class PyPI(Cog):
40+
"""Cog for getting information about PyPI packages."""
4141

4242
def __init__(self, bot: Bot):
4343
self.bot = bot
@@ -83,8 +83,8 @@ async def get_package_info(self, ctx: Context, package: str) -> None:
8383
error = False
8484

8585
else:
86-
embed.description = "There was an error when fetching your PyPi package."
87-
log.trace(f"Error when fetching PyPi package: {response.status}.")
86+
embed.description = "There was an error when fetching your PyPI package."
87+
log.trace(f"Error when fetching PyPI package: {response.status}.")
8888

8989
if error:
9090
error_message = await ctx.send(embed=embed)
@@ -101,5 +101,5 @@ async def get_package_info(self, ctx: Context, package: str) -> None:
101101

102102

103103
async def setup(bot: Bot) -> None:
104-
"""Load the PyPi cog."""
105-
await bot.add_cog(PyPi(bot))
104+
"""Load the PyPI cog."""
105+
await bot.add_cog(PyPI(bot))

0 commit comments

Comments
 (0)