Commits

Anthony Tuininga  committed 1c57d0f

Make the example work in Python 3.x.

  • Participants
  • Parent commits 7d055cb

Comments (0)

Files changed (4)

File samples/advanced/advanced_1.py

 import sys
 
-print "Hello from cx_Freeze Advanced #1"
-print
+sys.stdout.write("Hello from cx_Freeze Advanced #1\n\n")
 
 module = __import__("testfreeze_1")
 

File samples/advanced/advanced_2.py

 import sys
 
-print "Hello from cx_Freeze Advanced #2"
-print
+sys.stdout.write("Hello from cx_Freeze Advanced #2\n\n")
 
 module = __import__("testfreeze_2")
 

File samples/advanced/modules/testfreeze_1.py

-print "Test freeze module #1"
+import sys
+
+sys.stdout.write("Test freeze module #1\n")
+

File samples/advanced/modules/testfreeze_2.py

-print "Test freeze module #2"
+import sys
+
+sys.stdout.write("Test freeze module #2\n")
+