From 16c06f5192d5ab95dcd94bf4b898bc2d809d2e0d Mon Sep 17 00:00:00 2001 From: Greg Hellings Date: Thu, 5 Apr 2018 02:29:13 +0000 Subject: Don’t use deprecated API calls. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Use Sword.VersificationMgr.getSystemVersificationMgr() instead of Sword.VerseMgr.getSystemVerseMgr(). * Use popError() instead of Error(). git-svn-id: https://www.crosswire.org/svn/sword-tools/trunk@519 07627401-56e2-0310-80f4-f8cd0041bdcd --- 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): -- cgit