make python3 compatible
This commit is contained in:
parent
6f71ad56d4
commit
b918047c4b
1 changed files with 2 additions and 2 deletions
|
@ -1,5 +1,5 @@
|
||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
|
from __future__ import print_function
|
||||||
import sys
|
import sys
|
||||||
import mapnik
|
import mapnik
|
||||||
|
|
||||||
|
@ -19,5 +19,5 @@ elif len(sys.argv) == 3:
|
||||||
elif len(sys.argv) == 5:
|
elif len(sys.argv) == 5:
|
||||||
render(sys.argv[1], sys.argv[2], int(sys.argv[3]), int(sys.argv[4]))
|
render(sys.argv[1], sys.argv[2], int(sys.argv[3]), int(sys.argv[4]))
|
||||||
else:
|
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)
|
sys.exit(1)
|
||||||
|
|
Loading…
Reference in a new issue