[svnbook] r6066 committed - trunk/tools/bin/find-xsl.py

danielsahlberg at users.sourceforge.net danielsahlberg at users.sourceforge.net
Mon Nov 11 16:43:09 UTC 2024


Revision: 6066
          http://sourceforge.net/p/svnbook/source/6066
Author:   danielsahlberg
Date:     2024-11-11 16:43:09 +0000 (Mon, 11 Nov 2024)
Log Message:
-----------
Add ( ) to print to make it Py3 compatible

Modified Paths:
--------------
    trunk/tools/bin/find-xsl.py

Modified: trunk/tools/bin/find-xsl.py
===================================================================
--- trunk/tools/bin/find-xsl.py	2023-07-14 21:20:17 UTC (rev 6065)
+++ trunk/tools/bin/find-xsl.py	2024-11-11 16:43:09 UTC (rev 6066)
@@ -32,7 +32,7 @@
 xsl_dir = os.path.join(tools_bin_dir, '..', 'xsl')
 
 if os.path.exists(xsl_dir):
-  print "XSL directory %s already exists" % (xsl_dir,)
+  print("XSL directory %s already exists" % (xsl_dir,))
   sys.exit(0)
 
 for i in candidate_xsldirs:
@@ -43,7 +43,7 @@
   for j in globs:
     if os.path.exists(os.path.join(j, 'html', 'docbook.xsl')):
       os.symlink(j, xsl_dir)
-      print "Found and linked %s" % (j,)
+      print("Found and linked %s" % (j,))
       sys.exit(0)
 
 sys.stderr.write('ERROR: Failed to find a DocBook XSL directory\n')




More information about the svnbook-dev mailing list