[magics] 16/63: And 2to3 convert the tests, too

Alastair McKinstry mckinstry at moszumanska.debian.org
Fri Mar 24 10:41:50 UTC 2017


This is an automated email from the git hooks/post-receive script.

mckinstry pushed a commit to branch debian/master
in repository magics.

commit 336568d34616e1d8aefc6b8cbe5f91614fb39e32
Author: Alastair McKinstry <mckinstry at debian.org>
Date:   Tue Jun 14 13:55:04 2016 +0100

    And 2to3 convert the tests, too
---
 debian/patches/python3.patch | 72 ++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 72 insertions(+)

diff --git a/debian/patches/python3.patch b/debian/patches/python3.patch
index 8944d4a..93e4a1c 100644
--- a/debian/patches/python3.patch
+++ b/debian/patches/python3.patch
@@ -838,3 +838,75 @@ Index: magics++-2.28.0/python/Magics/CMakeLists.txt
    set_source_files_properties(partio.i PROPERTIES SWIG_FLAGS "-includeall")
  
    swig_link_libraries( Magics MagPlus ${PYTHON_LIBRARIES} )
+Index: magics++-2.28.0/test/cairo.py
+===================================================================
+--- magics++-2.28.0.orig/test/cairo.py
++++ magics++-2.28.0/test/cairo.py
+@@ -1,5 +1,7 @@
+ # importing Magics module
+ 
++from __future__ import print_function
++
+ from Magics.macro import *
+ 
+ 
+@@ -54,7 +56,7 @@ legend = mlegend(
+ 
+ # To the plot
+ 
+-print "plot"
++print ("plot")
+ plot( output,  europe, coast, )
+ tofortran(ref, output,  europe, coast, )
+ 
+Index: magics++-2.28.0/test/bufr.py
+===================================================================
+--- magics++-2.28.0.orig/test/bufr.py
++++ magics++-2.28.0/test/bufr.py
+@@ -1,5 +1,6 @@
+ # importing Magics module
+ 
++from __future__ import print_function
+ from Magics.macro import *
+ 
+ 
+@@ -46,7 +47,7 @@ title = \
+ 
+ # To the plot
+ 
+-print "plot"
++print ("plot")
+ plot( output,  europe, obs, coast, )
+ tofortran(ref, output,  europe, obs, coast, )
+ 
+Index: magics++-2.28.0/test/coast.py
+===================================================================
+--- magics++-2.28.0.orig/test/coast.py
++++ magics++-2.28.0/test/coast.py
+@@ -1,5 +1,6 @@
+ # importing Magics module
+ 
++from __future__ import print_function
+ from Magics.macro import *
+ 
+ 
+Index: magics++-2.28.0/test/grib.py
+===================================================================
+--- magics++-2.28.0.orig/test/grib.py
++++ magics++-2.28.0/test/grib.py
+@@ -1,5 +1,6 @@
+ # importing Magics module
+ 
++from __future__ import print_function
+ from Magics.macro import *
+ 
+ 
+@@ -65,7 +66,7 @@ legend = mlegend(
+ 
+ # To the plot
+ 
+-print "plot"
++print("plot")
+ plot( output,  europe, data, cont, coast, title)
+ 
+ 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/magics.git



More information about the debian-science-commits mailing list