From 38a5afe88c49e0e5efbce9671e82b1d281363c6f Mon Sep 17 00:00:00 2001 From: Thomas Lauf Date: Sat, 28 Dec 2019 13:19:37 +0100 Subject: [PATCH] Remove redundant character escape in regex Signed-off-by: Thomas Lauf --- doc/holidays/refresh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/holidays/refresh b/doc/holidays/refresh index df07b413..7ae5ce93 100755 --- a/doc/holidays/refresh +++ b/doc/holidays/refresh @@ -90,7 +90,7 @@ def main(args): else: # Enumerate all holiday files in the current directory. locales = [] - re_holiday_file = re.compile(r"\/holidays.([a-z]{2}-[A-Z]{2}$)") + re_holiday_file = re.compile(r"/holidays.([a-z]{2}-[A-Z]{2}$)") for file in enumerate('.'): result = re_holiday_file.search(file) if result: