From 608ecae5fd7afef7df492698636c44abda728153 Mon Sep 17 00:00:00 2001 From: Calum Lind Date: Sun, 12 Feb 2017 11:26:31 +0000 Subject: [PATCH] [Console] Use raw string for regex compile --- deluge/ui/console/utils/format_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deluge/ui/console/utils/format_utils.py b/deluge/ui/console/utils/format_utils.py index 087a19621..6abe7eed8 100644 --- a/deluge/ui/console/utils/format_utils.py +++ b/deluge/ui/console/utils/format_utils.py @@ -124,7 +124,7 @@ def format_row(row, column_widths): return ''.join([format_column(row[i], column_widths[i]) for i in range(0, len(row))]) -_strip_re = re.compile('\\{!.*?!\\}') +_strip_re = re.compile(r'\{!.*?!\}') _format_code = re.compile(r'\{\|(.*)\|\}')