Modify processcsv.py for Python 3.
This commit is contained in:
parent
f8e3d17581
commit
dbca39b57c
2 changed files with 6 additions and 3 deletions
|
|
@ -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")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue