Modify processcsv.py for Python 3.
This commit is contained in:
parent
f8e3d17581
commit
dbca39b57c
@ -1,4 +1,4 @@
|
|||||||
#!/usr/bin/python
|
#!/usr/bin/python3
|
||||||
#
|
#
|
||||||
# https://bugzilla.redhat.com/show_bug.cgi?id=665817
|
# https://bugzilla.redhat.com/show_bug.cgi?id=665817
|
||||||
#
|
#
|
||||||
@ -18,7 +18,7 @@ import csv
|
|||||||
rows = csv.reader (sys.stdin)
|
rows = csv.reader (sys.stdin)
|
||||||
|
|
||||||
# Get the header row.
|
# Get the header row.
|
||||||
header = rows.next ()
|
header = next(rows)
|
||||||
|
|
||||||
# Find the index of the 'Hostname' and 'Time' cols (usually first two).
|
# Find the index of the 'Hostname' and 'Time' cols (usually first two).
|
||||||
hostname_i = header.index ("Hostname")
|
hostname_i = header.index ("Hostname")
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
Name: virt-top
|
Name: virt-top
|
||||||
Version: 1.0.8
|
Version: 1.0.8
|
||||||
Release: 29%{?dist}
|
Release: 30%{?dist}
|
||||||
Summary: Utility like top(1) for displaying virtualization stats
|
Summary: Utility like top(1) for displaying virtualization stats
|
||||||
License: GPLv2+
|
License: GPLv2+
|
||||||
|
|
||||||
@ -166,6 +166,9 @@ install -m 0644 processcsv.py.1 $RPM_BUILD_ROOT%{_mandir}/man1/
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%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
|
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.8-29
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user