Skip to content

Commit

Permalink
Fix: spinner using invalid escape sequence (#298)
Browse files Browse the repository at this point in the history
Before this running this code would result in:
```
maas/client/utils/__init__.py:341: SyntaxWarning: invalid escape sequence '\|'
```

Co-authored-by: Jacopo Rota <jacopo.rota@canonical.com>
  • Loading branch information
garymm and r00ta authored May 28, 2024
1 parent 5eac0fe commit 7160c93
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion maas/client/utils/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ class Spinner:
Use as a context manager.
"""

def __init__(self, frames="/-\|", stream=sys.stdout):
def __init__(self, frames=r"/-\|", stream=sys.stdout):
super(Spinner, self).__init__()
self.frames = frames
self.stream = stream
Expand Down

0 comments on commit 7160c93

Please sign in to comment.