Modify processcsv.py for Python 3.

This commit is contained in:
Richard W.M. Jones 2018-03-28 16:01:30 +01:00
parent f8e3d17581
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")

View File

@ -3,7 +3,7 @@
Name: virt-top
Version: 1.0.8
Release: 29%{?dist}
Release: 30%{?dist}
Summary: Utility like top(1) for displaying virtualization stats
License: GPLv2+
@ -166,6 +166,9 @@ install -m 0644 processcsv.py.1 $RPM_BUILD_ROOT%{_mandir}/man1/
%changelog
* Wed Mar 28 2018 Richard W.M. Jones <rjones@redhat.com> - 1.0.8-30
- Modify processcsv.py for Python 3.
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.8-29
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild