Skip to content

Commit

Permalink
Fixed 'invalid escape sequence' warning in GEOSGeometryBase.from_ewkt().
Browse files Browse the repository at this point in the history
  • Loading branch information
timgraham authored and claudep committed Jun 9, 2018
1 parent f383614 commit 7a266e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion django/contrib/gis/geos/geometry.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'))
Expand Down

0 comments on commit 7a266e2

Please sign in to comment.