diff --git a/sword_to_json.py b/sword_to_json.py index 9ae071c..6980efa 100644 --- a/sword_to_json.py +++ b/sword_to_json.py @@ -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() \ No newline at end of file +if __name__ == "__main__": main()