From 7160c93f3edf5525030a62ab1cf20a3637017965 Mon Sep 17 00:00:00 2001 From: Gary Miguel Date: Tue, 28 May 2024 00:28:24 -0700 Subject: [PATCH] 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 --- maas/client/utils/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/maas/client/utils/__init__.py b/maas/client/utils/__init__.py index 290d20f..1ae5a92 100644 --- a/maas/client/utils/__init__.py +++ b/maas/client/utils/__init__.py @@ -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