diff options
| author | 2020-03-04 08:37:35 +0100 | |
|---|---|---|
| committer | 2020-03-04 08:37:35 +0100 | |
| commit | c12b8e8d84cf8d2ad373c334e5c517d717285e14 (patch) | |
| tree | a9b834e9e6f4b4d777c074533408f25e61fe1dba /tests | |
| parent | Merge pull request #815 from python-discord/watchchannel-dm (diff) | |
Use raw strings for docstrings with forward slashes
A few docstrings in `bot.cogs.extensions` have forward slashed in them to escape Markdown rendering when our help feature uses these docstring in a Discord message. However, the use of forward slashes with an invalid escape sequence in docstrings now raises a DeprecationWarning in Python:
/home/sebastiaan/pydis/repositories/bot/bot/cogs/extensions.py:72: DeprecationWarning: invalid escape sequence \*
PEP 257 (Docstring Conventions, https://www.python.org/dev/peps/pep-0257/) states that raw strings should be used for docstrings that use forward slashes, so I've added the `r`-prefix to the docstrings that use forward slashes.
Diffstat (limited to 'tests')
0 files changed, 0 insertions, 0 deletions