summaryrefslogtreecommitdiff
path: root/graphics/opensubdiv/files/patch-documentation_processTutorials.py
diff options
context:
space:
mode:
authorTobias Kortkamp <tobik@FreeBSD.org>2019-01-28 19:53:28 +0000
committerTobias Kortkamp <tobik@FreeBSD.org>2019-01-28 19:53:28 +0000
commit8d0e7d048b7cb2366f922ddca7e63a5dcf4085d8 (patch)
tree739da6ce42e69b0ad5bba1262f211c4e4c2ed26f /graphics/opensubdiv/files/patch-documentation_processTutorials.py
parentx11-wm/i3-gaps: update to 4.16.1 (diff)
graphics/opensubdiv: Fix document generation when using Python 3.x as default
PR: 234687 Submitted by: FreeBSD@ShaneWare.Biz (maintainer) Reported by: antoine
Diffstat (limited to 'graphics/opensubdiv/files/patch-documentation_processTutorials.py')
-rw-r--r--graphics/opensubdiv/files/patch-documentation_processTutorials.py29
1 files changed, 29 insertions, 0 deletions
diff --git a/graphics/opensubdiv/files/patch-documentation_processTutorials.py b/graphics/opensubdiv/files/patch-documentation_processTutorials.py
new file mode 100644
index 000000000000..dff628e399ca
--- /dev/null
+++ b/graphics/opensubdiv/files/patch-documentation_processTutorials.py
@@ -0,0 +1,29 @@
+--- documentation/processTutorials.py.orig 2019-01-13 21:35:49 UTC
++++ documentation/processTutorials.py
+@@ -33,7 +33,7 @@ def ReadFile(inputfile):
+ try:
+ f = open( inputfile, "r")
+ except IOError:
+- print "Could not read file \'"+inputfile+"\'"
++ print("Could not read file \'"+inputfile+"\'")
+ content = f.read()
+ f.close()
+ return content
+@@ -48,7 +48,7 @@ def WriteToFile(outputfile, content):
+ try:
+ f = open(outputfile, "w")
+ except IOError:
+- print "Could not write file \'"+outputfile+"\'"
++ print("Could not write file \'"+outputfile+"\'")
+ f.write(content)
+ f.close()
+
+@@ -85,7 +85,7 @@ def Process(srcfile, title):
+
+ #-------------------------------------------------------------------------------
+ def Usage():
+- print str(sys.argv[0])+" <input file> <output file> <title>"
++ print(str(sys.argv[0])+" <input file> <output file> <title>")
+ exit(1);
+
+