From 8d5adeaba48e5528258b0bc9f6192bf6453d42c6 Mon Sep 17 00:00:00 2001 From: Andrew Williams Date: Sat, 20 Feb 2016 17:42:55 +0000 Subject: [PATCH] Update docstrings/formatting --- ttsmirror.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/ttsmirror.py b/ttsmirror.py index 4470010..10e7648 100644 --- a/ttsmirror.py +++ b/ttsmirror.py @@ -3,7 +3,6 @@ import logging import requests from urllib.parse import urlparse, urljoin import json -import shutil __version__ = '0.1' __author__ = 'Andrew Williams' @@ -11,7 +10,8 @@ __author__ = 'Andrew Williams' def iterate_save(obj, output_path, url_prefix): """ - Iterate a save, download assets, and update the locations as needed + Iterate a save, download assets, and update the locations as needed. + :param obj: :param output_path: :param url_prefix: @@ -49,6 +49,7 @@ def iterate_save(obj, output_path, url_prefix): def process_save(filename, output_path, url_prefix): + """Parses TTS JSON save file and mirrors the required objects.""" new_filename = '%s_new.json' % filename.replace('.', '_') with open(filename, 'r') as fobj: save = json.load(fobj) @@ -83,4 +84,4 @@ def main(): if __name__ == '__main__': - main() \ No newline at end of file + main()