From 1c371a24fb1f1ff7738e632fc23ed3fa64d4a275 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Tue, 21 Apr 2020 15:55:44 +0200 Subject: [PATCH] =?UTF-8?q?=E2=8F=AA=20Revert=20"=F0=9F=90=9B=20Use=20raw?= =?UTF-8?q?=20strings=20for=20regex=20patterns"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit bec4d04c --- src/octoprint/util/commandline.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/octoprint/util/commandline.py b/src/octoprint/util/commandline.py index 699c9a359..27f92da15 100644 --- a/src/octoprint/util/commandline.py +++ b/src/octoprint/util/commandline.py @@ -27,9 +27,9 @@ except ImportError: # pragma: no cover # Author: Jonathan Hartley # License: BSD-3 (https://github.com/tartley/colorama/blob/master/LICENSE.txt) # Website: https://github.com/tartley/colorama/ -_ANSI_CSI_PATTERN = r"\001?\033\[(\??(?:\d|;)*)([a-zA-Z])\002?" # Control Sequence Introducer -_ANSI_OSC_PATTERN = r"\001?\033\]((?:.|;)*?)(\x07)\002?" # Operating System Command -_ANSI_REGEX = re.compile(r"|".join([_ANSI_CSI_PATTERN, +_ANSI_CSI_PATTERN = b"\001?\033\[(\??(?:\d|;)*)([a-zA-Z])\002?" # Control Sequence Introducer +_ANSI_OSC_PATTERN = b"\001?\033\]((?:.|;)*?)(\x07)\002?" # Operating System Command +_ANSI_REGEX = re.compile(b"|".join([_ANSI_CSI_PATTERN, _ANSI_OSC_PATTERN]))