5
2
mirror of https://github.com/getbible/v2_builder.git synced 2024-11-21 18:25:10 +00:00

Version check

Check python version and import from past if necessary
This commit is contained in:
laurajauch 2018-03-08 20:37:14 -05:00 committed by GitHub
parent 2b0b6da6f0
commit 2ca5daff45
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,6 +1,9 @@
from pysword.modules import SwordModules
from past.builtins import xrange
import argparse, json
import argparse, json, sys
if sys.version_info > (3, 0):
from past.builtins import xrange
def generate_dict(source_file, bible_version):
modules = SwordModules(source_file)