1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
|
Description: Port python scripts to Python3
Author: Alastair McKinstry <mckinstry@debian.org>
Forwarded: no
Last-Updated: 2018-01-03
--- a/metview/scripts/mv_eccharts.py
+++ b/metview/scripts/mv_eccharts.py
@@ -1,3 +1,4 @@
+#!/usr/bin/python3
#***************************** LICENSE START ***********************************
#
# Copyright 2018 ECMWF and INPE. This software is distributed under the terms
--- a/metview/scripts/mv_mars_catalog.py
+++ b/metview/scripts/mv_mars_catalog.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python3
# Copyright 2012 ECMWF and INPE. This software is distributed under the terms
# of the Apache License version 2.0. In applying this license, ECMWF does not
# waive the privileges and immunities granted to it by virtue of its status as
@@ -39,4 +39,4 @@
output ={"axis":[], "tree":[], "choices":{}}
fetch().navigate(path,output)
#print fetch().kids.keys()
-print json.dumps(output, indent = 4)
+print (json.dumps(output, indent = 4))
|