Modify processcsv.py for Python 3.

This commit is contained in:
Richard W.M. Jones 2018-03-28 16:01:30 +01:00
commit dbca39b57c
2 changed files with 6 additions and 3 deletions

View file

@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/python3
#
# https://bugzilla.redhat.com/show_bug.cgi?id=665817
#
@ -18,7 +18,7 @@ import csv
rows = csv.reader (sys.stdin)
# Get the header row.
header = rows.next ()
header = next(rows)
# Find the index of the 'Hostname' and 'Time' cols (usually first two).
hostname_i = header.index ("Hostname")