Skip to content

Commit 7160c93

Browse files
garymmr00ta
andauthored
Fix: spinner using invalid escape sequence (#298)
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>
1 parent 5eac0fe commit 7160c93

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

maas/client/utils/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@ class Spinner:
338338
Use as a context manager.
339339
"""
340340

341-
def __init__(self, frames="/-\|", stream=sys.stdout):
341+
def __init__(self, frames=r"/-\|", stream=sys.stdout):
342342
super(Spinner, self).__init__()
343343
self.frames = frames
344344
self.stream = stream

0 commit comments

Comments
 (0)