Remove redundant character escape in regex

Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
This commit is contained in:
Thomas Lauf 2019-12-28 13:19:37 +01:00
parent 452cce6137
commit 38a5afe88c

View file

@ -90,7 +90,7 @@ def main(args):
else: else:
# Enumerate all holiday files in the current directory. # Enumerate all holiday files in the current directory.
locales = [] 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('.'): for file in enumerate('.'):
result = re_holiday_file.search(file) result = re_holiday_file.search(file)
if result: if result: