From ad529eb9efe2ea7d22093c80b0068c8eb7409329 Mon Sep 17 00:00:00 2001 From: Jim Miller Date: Wed, 23 Sep 2020 12:36:34 -0500 Subject: [PATCH] Fix for deprecated regex escape warnings. --- fanficfare/adapters/adapter_novelupdatescc.py | 2 +- fanficfare/adapters/adapter_wuxiaworldco.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/fanficfare/adapters/adapter_novelupdatescc.py b/fanficfare/adapters/adapter_novelupdatescc.py index 8958d16d..a749ad7b 100644 --- a/fanficfare/adapters/adapter_novelupdatescc.py +++ b/fanficfare/adapters/adapter_novelupdatescc.py @@ -103,7 +103,7 @@ class NovelUpdatesCcSiteAdapter(BaseSiteAdapter): if self.getConfig("dedup_order_chapter_list",False): # Sort and deduplicate chapters (some stories in incorrect order and/or duplicates) chapters_data = [] - numbers_regex = re.compile('[^0-9\.]') # Everything except decimal and numbers + numbers_regex = re.compile(r'[^0-9\.]') # Everything except decimal and numbers for ch in chapters: chapter_title = ch.p.get_text() chapter_url = ch['href'] diff --git a/fanficfare/adapters/adapter_wuxiaworldco.py b/fanficfare/adapters/adapter_wuxiaworldco.py index a5309e1f..0b8b3eb5 100644 --- a/fanficfare/adapters/adapter_wuxiaworldco.py +++ b/fanficfare/adapters/adapter_wuxiaworldco.py @@ -103,7 +103,7 @@ class WuxiaWorldCoSiteAdapter(BaseSiteAdapter): if self.getConfig("dedup_order_chapter_list",False): # Sort and deduplicate chapters (some stories in incorrect order and/or duplicates) chapters_data = [] - numbers_regex = re.compile('[^0-9\.]') # Everything except decimal and numbers + numbers_regex = re.compile(r'[^0-9\.]') # Everything except decimal and numbers for ch in chapters: chapter_title = ch.p.get_text() chapter_url = ch['href']