[sword-svn] r567 - trunk/versification
greg.hellings at crosswire.org
greg.hellings at crosswire.org
Thu Jun 19 00:10:23 EDT 2025
Author: greg.hellings
Date: 2025-06-19 00:10:23 -0400 (Thu, 19 Jun 2025)
New Revision: 567
Modified:
trunk/versification/av11n.py
Log:
Fix a few issues with python3 compat
Modified: trunk/versification/av11n.py
===================================================================
--- trunk/versification/av11n.py 2025-05-05 16:27:38 UTC (rev 566)
+++ trunk/versification/av11n.py 2025-06-19 04:10:23 UTC (rev 567)
@@ -122,13 +122,12 @@
keyList.sort()
if len(keyList) > 0:
if len(keyList) < 100:
- log.info('\tThe following IDs don’t appear in your file:\n%s',
+ print('\tThe following IDs don’t appear in your file:\n%s',
str(", ".join(keyList)))
- print ('\tThere are %d OT IDs and %d NT IDs ' +
- 'in v11n which aren’t in your file.') \
- % (len(otkeyList), len(ntkeyList))
+ print (f'\tThere are {len(otkeyList)} OT IDs and {len(ntkeyList)} NT IDs ' +
+ 'in v11n which aren’t in your file.')
else:
- print '\tYour file has all the references in this v11n'
+ print('\tYour file has all the references in this v11n')
# Now let's see if you had extra
if len(otextraKeys + ntextraKeys) > 0:
@@ -135,11 +134,10 @@
# It doesn't make sense to print out lists longer than 100
# they cannot be read anyway
if len(keyList) < 100:
- log.info(
+ print(
'\tThe following IDs don’t appear in v11n:\n%s',
str(", ".join(keyList)))
- print ('\tThere are %d OT IDs and %d NT IDs ' +
- 'in your file which don’t appear in v11n.') \
- % (len(otextraKeys), len(ntextraKeys))
+ print (f'\tThere are {len(otextraKeys)} OT IDs and {len(ntextraKeys)} NT IDs ' +
+ 'in your file which don’t appear in v11n.')
else:
- print '\tYour file has no extra references'
+ print('\tYour file has no extra references')
More information about the sword-cvs
mailing list