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'))