summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGreg Hellings <greg.hellings@gmail.com>2018-04-05 02:29:13 +0000
committerGreg Hellings <greg.hellings@gmail.com>2018-04-05 02:29:13 +0000
commit16c06f5192d5ab95dcd94bf4b898bc2d809d2e0d (patch)
tree407daf32db1e8a590a13d620b8b8bc9514aaa668
parent1a6d0bd9172b498e85d6848f718affcdb8ece061 (diff)
downloadsword-tools-16c06f5192d5ab95dcd94bf4b898bc2d809d2e0d.tar.gz
Don’t use deprecated API calls.
* 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
-rwxr-xr-xversification/av11n.py4
1 files 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):