diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2016-11-22 11:40:06 +0100 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2016-11-22 11:40:06 +0100 |
commit | b7e107d6cfef782a25f51ffaaac86b9682f376e1 (patch) | |
tree | 0bad1b5c4423c5eb4c06cb9effbb63f8d8d59324 | |
parent | fdaf554a4a58659b0afdf5d5f31a20068abb4f0e (diff) | |
download | Chimère-b7e107d6cfef782a25f51ffaaac86b9682f376e1.tar.bz2 Chimère-b7e107d6cfef782a25f51ffaaac86b9682f376e1.zip |
Force int conversion for some python3 version
-rw-r--r-- | chimere/utils.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/chimere/utils.py b/chimere/utils.py index 71a7237..c86bb0b 100644 --- a/chimere/utils.py +++ b/chimere/utils.py @@ -720,7 +720,7 @@ class GeoRSSManager(ImportManager): points = item['georss_line'].split(' ') reordered_points = [] # lat, lon -> x, y - for idx in range(len(points) / 2): + for idx in range(int(len(points) / 2)): reordered_points.append("%s %s" % (points[idx * 2 + 1], points[idx * 2])) dct['route'] = 'SRID=4326;LINESTRING(%s)' % \ |