diff options
| author | 2025-09-15 16:41:07 +0100 | |
|---|---|---|
| committer | 2025-09-15 16:41:07 +0100 | |
| commit | fe2dabfc54e14ab360d7e1147dd9ce43caf31cfc (patch) | |
| tree | ee615cf074cdbb488601dedfc9cf0627ef09bba2 | |
| parent | Merge pull request #3381 from python-discord/nedbat-patch-1 (diff) | |
| parent | Rename PyPi class to PyPI for consistency (diff) | |
Merge pull request #3385 from onerandomusername/patch-1
Update captization of PyPI for consistency with PyPI trademark and branding
| -rw-r--r-- | bot/exts/info/pypi.py | 12 | 
1 files changed, 6 insertions, 6 deletions
diff --git a/bot/exts/info/pypi.py b/bot/exts/info/pypi.py index e924b7a41..a00f30753 100644 --- a/bot/exts/info/pypi.py +++ b/bot/exts/info/pypi.py @@ -36,8 +36,8 @@ def _get_latest_distribution_timestamp(data: dict[str, typing.Any]) -> datetime          log.trace("KeyError trying to fetch upload time: data['urls'][-1]['upload_time_iso_8601']")          return None -class PyPi(Cog): -    """Cog for getting information about PyPi packages.""" +class PyPI(Cog): +    """Cog for getting information about PyPI packages."""      def __init__(self, bot: Bot):          self.bot = bot @@ -83,8 +83,8 @@ class PyPi(Cog):                      error = False                  else: -                    embed.description = "There was an error when fetching your PyPi package." -                    log.trace(f"Error when fetching PyPi package: {response.status}.") +                    embed.description = "There was an error when fetching your PyPI package." +                    log.trace(f"Error when fetching PyPI package: {response.status}.")          if error:              error_message = await ctx.send(embed=embed) @@ -101,5 +101,5 @@ class PyPi(Cog):  async def setup(bot: Bot) -> None: -    """Load the PyPi cog.""" -    await bot.add_cog(PyPi(bot)) +    """Load the PyPI cog.""" +    await bot.add_cog(PyPI(bot))  |