From 7a266e25be1b641111ab5889f9808ff6d258d27f Mon Sep 17 00:00:00 2001 From: Tim Graham Date: Sat, 9 Jun 2018 03:27:33 -0400 Subject: [PATCH] Fixed 'invalid escape sequence' warning in GEOSGeometryBase.from_ewkt(). --- django/contrib/gis/geos/geometry.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django/contrib/gis/geos/geometry.py b/django/contrib/gis/geos/geometry.py index 80770dfa6b5..777e4658830 100644 --- a/django/contrib/gis/geos/geometry.py +++ b/django/contrib/gis/geos/geometry.py @@ -113,7 +113,7 @@ class GEOSGeometryBase(GEOSBase): parts = ewkt.split(b';', 1) if len(parts) == 2: srid_part, wkt = parts - match = re.match(b'SRID=(?P\-?\d+)', srid_part) + match = re.match(br'SRID=(?P\-?\d+)', srid_part) if not match: raise ValueError('EWKT has invalid SRID part.') srid = int(match.group('srid'))