From ae8b70ef0a975b22f2b761e82686d4d75deba915 Mon Sep 17 00:00:00 2001 From: Raphael Roberts Date: Wed, 27 Mar 2019 14:06:51 -0500 Subject: [PATCH] made pep8 compliant --- ctabus.py | 2 +- main.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ctabus.py b/ctabus.py index 4ef42ea..17154e2 100644 --- a/ctabus.py +++ b/ctabus.py @@ -10,7 +10,7 @@ def get_data(type, api_key=api, timeout=None, **args): args['format'] = 'json' url = base_url.format(type=type, query=urlencode(args)) if timeout is not None: - response = urlopen(url,timeout = timeout) + response = urlopen(url, timeout=timeout) else: response = urlopen(url) data = json.load(response)['bustime-response'] diff --git a/main.py b/main.py index 9e70cbd..1068888 100755 --- a/main.py +++ b/main.py @@ -73,6 +73,7 @@ def pprint_delta(delta): def gen_list(objs, data, *displays, key=None, sort=0, num_pic=True): + from print2d import print2d k = displays[sort] display_data = {obj[k]: obj[data] for obj in objs} srt_keys = sorted(display_data.keys(), key=key) @@ -158,7 +159,6 @@ def main(args): if not args.arg.isdecimal(): # save on import time slightly - from print2d import print2d from search import Search, StopSearch # routes if not args.route: