wasdin / SWORD-to-JSON

Convert SWORD modules to JSON: Generate json files of many Bible versions
BSD 2-Clause "Simplified" License
42 stars 14 forks source link

Added support for python 3 #2

Closed laurajauch closed 6 years ago

laurajauch commented 6 years ago

Import support for python 3. Now compatible with both python 2 and 3.

laurajauch commented 6 years ago

Resolves Issue #1

wasdin commented 6 years ago

Does not work in Python 2 now, unfortunately. I think it will need to handle not having the past available to import in Python 2.

Traceback (most recent call last):
  File "sword_to_json.py", line 2, in <module>
    from past.builtins import xrange
ImportError: No module named past.builtins 
laurajauch commented 6 years ago

Interesting. I didn't see that before. I added an explicit version check now.