diff options
| author | Étienne Loks <etienne.loks@iggdrasil.net> | 2016-09-22 23:06:12 +0200 | 
|---|---|---|
| committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2016-09-22 23:06:12 +0200 | 
| commit | 8a8f25e156367807d174bbe858e8f66416306001 (patch) | |
| tree | 001e62218954de6391f83e2436de816cc6c7a48a /chimere/route.py | |
| parent | 792fed91a5c0c218ede19b01d5d818730193a6b2 (diff) | |
| download | Chimère-8a8f25e156367807d174bbe858e8f66416306001.tar.bz2 Chimère-8a8f25e156367807d174bbe858e8f66416306001.zip | |
Going to python3 and Django 1.8!
Diffstat (limited to 'chimere/route.py')
| -rw-r--r-- | chimere/route.py | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/chimere/route.py b/chimere/route.py index 31cf4f0..406d7d9 100644 --- a/chimere/route.py +++ b/chimere/route.py @@ -26,7 +26,7 @@ import os  import re  import shutil  import tempfile -from BeautifulSoup import BeautifulSoup +from bs4 import BeautifulSoup  from subprocess import Popen, PIPE  from django.contrib.gis.gdal import DataSource  from django.contrib.gis.gdal.error import OGRException @@ -64,7 +64,7 @@ class RoutinoRouter(Router):                  ]          if speed:              args += [ -                "--speed-%s=%s" % (highway, unicode(speed)) +                "--speed-%s=%s" % (highway, str(speed))                  for highway in (                      'motorway', 'trunk', 'primary', 'secondary', 'tertiary',                      'unclassified', 'residential', 'service', 'track', | 
