erkin / ponysay

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

Bugfix: SyntaxWarning: invalid escape sequence '\-' #316

Closed mdayaram closed 5 months ago

mdayaram commented 5 months ago

I get the following error when running the latest ponysay on Python 3.12:

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

I believe the changes I made fix the issue, and the error is no longer present. However, I had trouble running ponysay directly from source, so I could only verify this by replicating the issue with a simple program and then issuing this fix.

matthias4217 commented 5 months ago

This would fix #314. It has also been implemented in #313, although the latter also address other issues.

mdayaram commented 5 months ago

Ah, perfect! Glad to hear it's already in the works. Sorry for not double checking that myself. Will go ahead and close this then.