[sword-devel] [PATCH 2/7] Don’t use deprecated API calls.
Matěj Cepl
mcepl at cepl.eu
Sat Mar 31 11:48:59 MST 2018
* Use Sword.VersificationMgr.getSystemVersificationMgr() instead of
Sword.VerseMgr.getSystemVerseMgr().
* Use popError() instead of Error().
---
versification/av11n.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/versification/av11n.py b/versification/av11n.py
index 5e01c9e..7dabfee 100755
--- a/versification/av11n.py
+++ b/versification/av11n.py
@@ -41,7 +41,7 @@ d = pq(filename=sys.argv[1])
# Get the list of versifications
if debug:
print 'Fetching a list of versifications'
-vmgr = Sword.VerseMgr.getSystemVerseMgr()
+vmgr = Sword.VersificationMgr.getSystemVersificationMgr()
av11ns = vmgr.getVersificationSystems()
# Get the list of all osisIDs
@@ -64,7 +64,7 @@ for v11n in av11ns:
ntextraKeys = []
inNT = False
- while key.Error() == '\x00':
+ while key.popError() == '\x00':
skey = key.getOSISRef()
# Assume we enter the NT when we hit Matthew
if not inNT and re.match('^Matt', skey):
--
2.16.2
More information about the sword-devel
mailing list