From b918047c4b5529b552d553e704ab50f563b8c5b8 Mon Sep 17 00:00:00 2001 From: artemp Date: Tue, 3 Nov 2015 10:48:06 +0000 Subject: [PATCH] make python3 compatible --- demo/simple-renderer/render.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/demo/simple-renderer/render.py b/demo/simple-renderer/render.py index 6ab075d25..49bf72137 100755 --- a/demo/simple-renderer/render.py +++ b/demo/simple-renderer/render.py @@ -1,5 +1,5 @@ #!/usr/bin/env python - +from __future__ import print_function import sys import mapnik @@ -19,5 +19,5 @@ elif len(sys.argv) == 3: elif len(sys.argv) == 5: render(sys.argv[1], sys.argv[2], int(sys.argv[3]), int(sys.argv[4])) else: - print "usage: %s style_file [output_file] [width height]" % sys.argv[0] + print ("usage: %s style_file [output_file] [width height]" % sys.argv[0]) sys.exit(1)