mirror of
https://github.com/getbible/v2_builder.git
synced 2024-11-22 02:35:09 +00:00
py 2 AND 3 support
Now it works for both!
This commit is contained in:
parent
87fe92cf23
commit
2b0b6da6f0
@ -1,4 +1,5 @@
|
|||||||
from pysword.modules import SwordModules
|
from pysword.modules import SwordModules
|
||||||
|
from past.builtins import xrange
|
||||||
import argparse, json
|
import argparse, json
|
||||||
|
|
||||||
def generate_dict(source_file, bible_version):
|
def generate_dict(source_file, bible_version):
|
||||||
@ -13,9 +14,9 @@ def generate_dict(source_file, bible_version):
|
|||||||
|
|
||||||
for book in books:
|
for book in books:
|
||||||
chapters = []
|
chapters = []
|
||||||
for chapter in range(1, book.num_chapters+1):
|
for chapter in xrange(1, book.num_chapters+1):
|
||||||
verses = []
|
verses = []
|
||||||
for verse in range(1, len(book.get_indicies(chapter))+1 ):
|
for verse in xrange(1, len(book.get_indicies(chapter))+1 ):
|
||||||
verses.append({
|
verses.append({
|
||||||
'verse': verse,
|
'verse': verse,
|
||||||
'chapter': chapter,
|
'chapter': chapter,
|
||||||
|
Loading…
Reference in New Issue
Block a user