diff options
author | Magnus Hagander | 2018-12-14 14:04:33 +0000 |
---|---|---|
committer | Magnus Hagander | 2018-12-14 14:04:33 +0000 |
commit | ae28c2fec8398c753d6d82c3ca65bca067734802 (patch) | |
tree | b516bd8757a55c5d4af3483613e6189deb4bd2f3 /tools/deploystatic/deploystatic.py | |
parent | 52f065bb9bbe9a9e6f648dc31c25ba3af147ac85 (diff) |
Fix spaces before/after comma and colon
Mostly not important, but getting rid of the PIP warnings will help
catch errors in the future.
Diffstat (limited to 'tools/deploystatic/deploystatic.py')
-rwxr-xr-x | tools/deploystatic/deploystatic.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/deploystatic/deploystatic.py b/tools/deploystatic/deploystatic.py index 8cb4a959..bd131243 100755 --- a/tools/deploystatic/deploystatic.py +++ b/tools/deploystatic/deploystatic.py @@ -47,7 +47,7 @@ def filter_shuffle(l): # Format a datetime. If it's a datetime, call strftime. If it's a # string, assume it's iso format and convert it to a date first. def filter_datetimeformat(value, fmt): - if isinstance(value, date) or isinstance(value, datetime) or isinstance(value,time): + if isinstance(value, date) or isinstance(value, datetime) or isinstance(value, time): return value.strftime(fmt) else: return dateutil.parser.parse(value).strftime(fmt) @@ -308,7 +308,7 @@ if __name__ == "__main__": if args.branch: env = jinja2.sandbox.SandboxedEnvironment(loader=JinjaTarLoader(source)) else: - env = jinja2.sandbox.SandboxedEnvironment(loader=jinja2.FileSystemLoader([os.path.join(args.sourcepath, 'templates/'),])) + env = jinja2.sandbox.SandboxedEnvironment(loader=jinja2.FileSystemLoader([os.path.join(args.sourcepath, 'templates/'), ])) env.filters.update(global_filters) # If there is a context json, load it as well |