mirror of
https://github.com/getbible/v2_builder.git
synced 2024-11-17 00:45:09 +00:00
python 3 range
modified to work with python 3
This commit is contained in:
parent
f96d0c50dc
commit
87fe92cf23
@ -13,9 +13,9 @@ def generate_dict(source_file, bible_version):
|
||||
|
||||
for book in books:
|
||||
chapters = []
|
||||
for chapter in xrange(1, book.num_chapters+1):
|
||||
for chapter in range(1, book.num_chapters+1):
|
||||
verses = []
|
||||
for verse in xrange(1, len(book.get_indicies(chapter))+1 ):
|
||||
for verse in range(1, len(book.get_indicies(chapter))+1 ):
|
||||
verses.append({
|
||||
'verse': verse,
|
||||
'chapter': chapter,
|
||||
@ -49,4 +49,4 @@ def main():
|
||||
bible_dict = generate_dict(args.source_file, args.bible_version)
|
||||
write_json(bible_dict, args.output_file)
|
||||
|
||||
if __name__ == "__main__": main()
|
||||
if __name__ == "__main__": main()
|
||||
|
Loading…
Reference in New Issue
Block a user