Skip to content

Commit

Permalink
Remove double negation
Browse files Browse the repository at this point in the history
  • Loading branch information
georgiana-b committed May 19, 2016
1 parent 9b9883a commit 60d47a4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions goodtables/compat.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def csv_reader(data, dialect=csv.excel, header_index=0, **kwargs):
first_lines = list(islice(data, header_index, header_index + 2))
dialect = detect_dialect(first_lines)

while not re.findall('[^\w ]', dialect.delimiter):
while re.findall('[\w ]', dialect.delimiter):
first_lines.append(data.readline())
dialect = detect_dialect(first_lines)

Expand Down Expand Up @@ -90,7 +90,7 @@ def line_iterator(data):
first_lines = list(islice(data, header_index, header_index + 2))
dialect = detect_dialect(first_lines)

while not re.findall('[^\w ]', dialect.delimiter):
while re.findall('[\w ]', dialect.delimiter):
first_lines.append(data.readline())
dialect = detect_dialect(first_lines)

Expand Down

0 comments on commit 60d47a4

Please sign in to comment.