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:
parent
2b0b6da6f0
commit
2ca5daff45
@ -1,6 +1,9 @@
|
|||||||
from pysword.modules import SwordModules
|
from pysword.modules import SwordModules
|
||||||
from past.builtins import xrange
|
import argparse, json, sys
|
||||||
import argparse, json
|
|
||||||
|
if sys.version_info > (3, 0):
|
||||||
|
from past.builtins import xrange
|
||||||
|
|
||||||
|
|
||||||
def generate_dict(source_file, bible_version):
|
def generate_dict(source_file, bible_version):
|
||||||
modules = SwordModules(source_file)
|
modules = SwordModules(source_file)
|
||||||
|
Loading…
Reference in New Issue
Block a user