summaryrefslogtreecommitdiff
path: root/chimere/route.py
diff options
context:
space:
mode:
Diffstat (limited to 'chimere/route.py')
-rw-r--r--chimere/route.py4
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',