From 848c1cd08dfdd97b68bbc73bfd603082af9d1ff7 Mon Sep 17 00:00:00 2001 From: Karthikeyan Singaravelan Date: Sun, 16 Feb 2020 11:27:45 +0530 Subject: [PATCH] Fix deprecation warnings due to invalid escape sequences. --- geocoder/uscensus.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/geocoder/uscensus.py b/geocoder/uscensus.py index 2f2817ed..6bd440da 100644 --- a/geocoder/uscensus.py +++ b/geocoder/uscensus.py @@ -33,7 +33,7 @@ def address(self): @property def housenumber(self): if self.address: - match = re.search('^\d+', self.address, re.UNICODE) + match = re.search(r'^\d+', self.address, re.UNICODE) if match: return match.group(0)