Skip to content

Commit

Permalink
Cosmetic cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Oliver Smith committed Mar 7, 2015
1 parent 5e88222 commit f6f9cba
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions commands/local_cmd.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,21 +138,21 @@ def station_filter(system):

def render(results, cmdenv, tdb):
if not results or not results.rows:
raise TradeException("No systems found within {}ly of {}.".format(
results.summary.ly,
results.summary.near.name(),
))
raise TradeException(
"No systems found within {}ly of {}."
.format(results.summary.ly, results.summary.near.name())
)

# Compare system names so we can tell
maxSysLen = max_len(results.rows, key=lambda row: row.system.name())

sysRowFmt = RowFormat().append(
ColumnFormat("System", '<', maxSysLen,
key=lambda row: row.system.name())
).append(
ColumnFormat("Dist", '>', '7', '.2f',
key=lambda row: row.dist)
)
ColumnFormat("System", '<', maxSysLen,
key=lambda row: row.system.name())
).append(
ColumnFormat("Dist", '>', '7', '.2f',
key=lambda row: row.dist)
)

showStations = cmdenv.detail
if showStations:
Expand Down Expand Up @@ -202,10 +202,10 @@ def render(results, cmdenv, tdb):
)

cmdenv.DEBUG0(
"Systems within {ly:<5.2f}ly of {sys}.\n",
sys=results.summary.near.name(),
ly=results.summary.ly,
)
"Systems within {ly:<5.2f}ly of {sys}.\n",
sys=results.summary.near.name(),
ly=results.summary.ly,
)

if not cmdenv.quiet:
heading, underline = sysRowFmt.heading()
Expand Down

0 comments on commit f6f9cba

Please sign in to comment.