[sword-svn] r519 - trunk/versification

greg.hellings at crosswire.org greg.hellings at crosswire.org
Wed Apr 4 19:29:13 MST 2018


Author: greg.hellings
Date: 2018-04-04 19:29:13 -0700 (Wed, 04 Apr 2018)
New Revision: 519

Modified:
   trunk/versification/av11n.py
Log:
Don?\226?\128?\153t use deprecated API calls.

* Use Sword.VersificationMgr.getSystemVersificationMgr() instead of
  Sword.VerseMgr.getSystemVerseMgr().
* Use popError() instead of Error().

Modified: trunk/versification/av11n.py
===================================================================
--- trunk/versification/av11n.py	2018-04-05 02:18:14 UTC (rev 518)
+++ trunk/versification/av11n.py	2018-04-05 02:29:13 UTC (rev 519)
@@ -41,7 +41,7 @@
 # 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 @@
     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):




More information about the sword-cvs mailing list