Fix external utilities to run with Python 2.6.

pull/14/head
Khushboo Vashi 2018-06-15 12:38:31 +01:00 committed by Dave Page
parent d1902cd639
commit ab54a6d39a
1 changed files with 1 additions and 1 deletions

View File

@ -172,7 +172,7 @@ class BatchProcess(object):
csv_writer = csv.writer(
args_csv_io, delimiter=str(','), quoting=csv.QUOTE_MINIMAL
)
if sys.version_info.major == 2:
if sys.version_info[0] == 2:
csv_writer.writerow(
[
a.encode('utf-8')