Skip to content

Commit

Permalink
Try to fix for appveyor - Python 3
Browse files Browse the repository at this point in the history
  • Loading branch information
thombashi committed Nov 20, 2016
1 parent dd603e0 commit 15c60fc
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pytablereader/csv/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,10 @@ def load(self):
self._validate()
pathvalidate.validate_file_path(self.source)

if platform.system() == "Windows":
if all([
platform.system() == "Windows",
six.PY3
]):
self._csv_reader = csv.reader(
io.open(self.source, "r", encoding=self.encoding),
delimiter=self.delimiter, quotechar=self.quotechar)
Expand Down

0 comments on commit 15c60fc

Please sign in to comment.