diff options
| author | Tim Graham <timograham@gmail.com> | 2018-06-09 03:27:33 -0400 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2018-06-12 10:25:17 -0400 |
| commit | 9dfb6fcbd5cc938a6c6639eafdf9ed53b751f6a0 (patch) | |
| tree | e0f26608bdfad68ae256ac8c737604425f448b11 | |
| parent | 1033a8e7bc3656c726ab990e173b6a6c47446553 (diff) | |
[2.0.x] Fixed 'invalid escape sequence' warning in GEOSGeometryBase.from_ewkt().
Backport of 7a266e25be1b641111ab5889f9808ff6d258d27f from master.
| -rw-r--r-- | django/contrib/gis/geos/geometry.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/django/contrib/gis/geos/geometry.py b/django/contrib/gis/geos/geometry.py index 1ebecc864b..791c23c928 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<srid>\-?\d+)', srid_part) + match = re.match(br'SRID=(?P<srid>\-?\d+)', srid_part) if not match: raise ValueError('EWKT has invalid SRID part.') srid = int(match.group('srid')) |
