erkin / ponysay

Pony rewrite of cowsay.
GNU General Public License v3.0
1.19k stars 81 forks source link

Issue with Python 3.12 SyntaxWarning: invalid escape sequence docstrings? #314

Open maclermo opened 7 months ago

maclermo commented 7 months ago

Running on macOS 14, installed using brew and with python3.12:

bash❯ ponysay -v
/usr/local/bin/ponysay/balloon.py:43: SyntaxWarning: invalid escape sequence '\-'
/usr/local/bin/ponysay/balloon.py:43: SyntaxWarning: invalid escape sequence '\-'
ponysay 3.0.3

Program works otherwise. Looks to be in the docstring.

Please follow PEP 257, docstrings should be in triple double-quotes (you are using triple single-quotes).

Tonyl314 commented 7 months ago

The warning is fixed in #313.

maclermo commented 7 months ago

See my comment in #313.