Skip to content

Commit

Permalink
Minor pep8 tweaks.
Browse files Browse the repository at this point in the history
  • Loading branch information
onyxfish committed Oct 14, 2011
1 parent cc0515d commit 666aa36
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion csvkit/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -225,14 +225,16 @@ def parse_column_identifiers(ids, column_names):

for c in ids.split(','):
c = c.strip()

try:
columns.append(match_column_identifier(column_names, c))
except ColumnIdentifierError:
if ':' in c:
a,b = c.split(':',1)
elif '-' in c:
a,b = c.split('-',1)
else: raise
else:
raise

try:
if a:
Expand Down

0 comments on commit 666aa36

Please sign in to comment.