Mercurial > repos > pjbriggs > ceas
diff data_manager/data_manager_ceas_fetch_annotations.py @ 5:e853be203962 draft
Fix error for Galaxy v16.04 (data manager crashes complaining about missing 'six' Python package)
| author | pjbriggs |
|---|---|
| date | Wed, 10 Aug 2016 11:37:28 -0400 |
| parents | 4e2883bb058d |
| children |
line wrap: on
line diff
--- a/data_manager/data_manager_ceas_fetch_annotations.py Wed Aug 10 11:04:42 2016 -0400 +++ b/data_manager/data_manager_ceas_fetch_annotations.py Wed Aug 10 11:37:28 2016 -0400 @@ -10,7 +10,11 @@ import gzip import shutil -from galaxy.util.json import from_json_string, to_json_string +# Convenience functions mapping to JSON conversion +# (this idiom borrowed from lib/galaxy/utils/json.py) +import json +to_json_string = json.dumps +from_json_string = json.loads # Download file from specified URL and put into local subdir
