Permalink
Browse files

[2.0.x] Fixed 'invalid escape sequence' warning in GEOSGeometryBase.f…

…rom_ewkt().

Backport of 7a266e2 from master.
  • Loading branch information...
timgraham committed Jun 9, 2018
1 parent 1033a8e commit 9dfb6fcbd5cc938a6c6639eafdf9ed53b751f6a0
Showing with 1 addition and 1 deletion.
  1. +1 −1 django/contrib/gis/geos/geometry.py
@@ -113,7 +113,7 @@ def from_ewkt(ewkt):
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'))

0 comments on commit 9dfb6fc

Please sign in to comment.