diff options
author | John Kacur <jkacur@redhat.com> | 2020-09-15 10:58:33 -0400 |
---|---|---|
committer | John Kacur <jkacur@redhat.com> | 2020-09-15 10:58:33 -0400 |
commit | b187ad616827dc8f5650d6150268211093b30320 (patch) | |
tree | 3a7e5828d5be54beb100207a74ea73c54f3d12aa | |
parent | c3f59e94aec709270824d185189355d8e0ef6ef3 (diff) | |
download | rteval-b187ad616827dc8f5650d6150268211093b30320.tar.gz |
rteval: Remove unnecessary import
- Remove unnecessary import
- Put imports on separate lines
- Add a docstring to summarize
Signed-off-by: John Kacur <jkacur@redhat.com>
-rwxr-xr-x | rteval-cmd | 12 |
1 files changed, 8 insertions, 4 deletions
@@ -34,17 +34,21 @@ # are deemed to be part of the source code. # -import sys, os, time, optparse, tempfile -import libxml2, lxml.etree -from datetime import datetime +import sys +import os +import time +import optparse +import tempfile +import lxml.etree from rteval.Log import Log from rteval import RtEval, rtevalConfig from rteval.modules.loads import LoadModules from rteval.modules.measurement import MeasurementModules from rteval.version import RTEVAL_VERSION -from rteval.misc import online_cpus, invert_cpulist, compress_cpulist +from rteval.misc import invert_cpulist, compress_cpulist def summarize(repfile, xslt): + """ Summarize an already existing XML report """ isarchive = False summaryfile = repfile if repfile.endswith(".tar.bz2"): |