File: python3.patch

package info (click to toggle)
metview 5.25.1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 611,896 kB
  • sloc: cpp: 551,741; ansic: 44,633; xml: 19,933; f90: 17,797; sh: 7,213; python: 5,565; yacc: 2,318; lex: 1,372; perl: 701; makefile: 87
file content (26 lines) | stat: -rw-r--r-- 985 bytes parent folder | download | duplicates (2)
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))