From f5fedb978f6dfc6f8d370f9b003c1adc8262abc0 Mon Sep 17 00:00:00 2001 From: Oliver Smith Date: Sun, 4 Jan 2015 16:54:26 -0800 Subject: [PATCH] Cleanup --- commands/local_cmd.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/commands/local_cmd.py b/commands/local_cmd.py index c3d0abc1..62fe8b36 100644 --- a/commands/local_cmd.py +++ b/commands/local_cmd.py @@ -1,5 +1,7 @@ from __future__ import absolute_import, with_statement, print_function, division, unicode_literals +from commands.commandenv import ResultRow from commands.parsing import MutuallyExclusiveGroup, ParseArgument +from formatting import RowFormat, ColumnFormat from tradedb import TradeDB from tradeexcept import TradeException @@ -30,8 +32,6 @@ # Perform query and populate result set def run(results, cmdenv, tdb): - from commands.commandenv import ResultRow - cmdenv = results.cmdenv tdb = cmdenv.tdb srcSystem = cmdenv.nearSystem @@ -102,8 +102,6 @@ def run(results, cmdenv, tdb): # Transform result set into output def render(results, cmdenv, tdb): - from formatting import RowFormat, ColumnFormat - if not results or not results.rows: raise TradeException("No systems found within {}ly of {}.".format( results.summary.ly,