SHA256
10
0
forked from pool/plplot
Files
plplot/support-python3-pythondemos.patch
Atri Bhattacharya d145edd11c Accepting request 904312 from home:StevenK:branches:science
- 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
2021-07-06 13:50:55 +00:00

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)