Fix SyntaxWarnings

Currently when running ponysay, you get this warning twice:

```
/nix/store/.../bin/ponysay/balloon.py:43: SyntaxWarning: invalid escape sequence '-'
```

It is caused by a docstring containing twice the phrase `\-directional`.

The fix is just to make it a raw string (replace `'''` with `r'''`).
This commit is contained in:
Noam Yorav-Raphael 2024-11-20 00:01:49 +02:00
parent 00b8c84d2f
commit f2dc085425

View file

@ -40,7 +40,7 @@ class Balloon():
'''
def __init__(self, link, linkmirror, linkcross, ww, ee, nw, nnw, n, nne, ne, nee, e, see, se, sse, s, ssw, sw, sww, w, nww):
'''
r'''
Constructor
@param link:str The \-directional balloon line character