- Change shebangs for Python examples to be Python 3. - Add patch support-python3-pythondemos.patch so pythondemos.py will run under Python 3. OBS-URL: https://build.opensuse.org/request/show/904312 OBS-URL: https://build.opensuse.org/package/show/science/plplot?expand=0&rev=142
14 lines
448 B
Diff
14 lines
448 B
Diff
Index: plplot-5.15.0/examples/python/pythondemos.py
|
|
===================================================================
|
|
--- plplot-5.15.0.orig/examples/python/pythondemos.py
|
|
+++ plplot-5.15.0/examples/python/pythondemos.py
|
|
@@ -53,7 +53,6 @@ for i in range(0,34):
|
|
w.plend()
|
|
|
|
if len(failed) != 0:
|
|
- import string
|
|
- print "Failed script(s): " + string.join(failed,", ")
|
|
+ print("Failed script(s): " + ", ".join(failed))
|
|
sys.exit(1)
|
|
|