commit 143f1df308dbdef7a0c2db18d93714504a9a0c0c Author: Seth Vidal skvidal@fedoraproject.org Date: Wed Aug 24 17:05:01 2011 -0400
fix helpers and loggers minor typos which keep the module tests from being able to run
py/epylog/helpers.py | 4 ++-- py/epylog/log.py | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) --- diff --git a/py/epylog/helpers.py b/py/epylog/helpers.py index 32550e6..81fea8a 100644 --- a/py/epylog/helpers.py +++ b/py/epylog/helpers.py @@ -79,7 +79,7 @@ class ModuleTest: except Exception, e: msg = "ERROR trying to open file %s: %s" % (filtfile, e) self._die(msg) - monthmap = epylog.log.mkmonthmap() + monthmap = epylog.log.mkMonthMap() rs = epylog.Result() while 1: line = infh.readline() @@ -121,7 +121,7 @@ class ModuleTest: Create a linemap out of a line entry. """ try: - stamp, sys, msg = epylog.log.get_stamp_sys_msg(line, monthmap) + stamp, sys, msg = epylog.log.getStampSysMsg(line, monthmap) except ValueError: # If we got an empty log line just go on parsing with nothing # instead of dying diff --git a/py/epylog/log.py b/py/epylog/log.py index d648331..ce22b88 100644 --- a/py/epylog/log.py +++ b/py/epylog/log.py @@ -33,7 +33,6 @@ import string import time import tempfile
-from elementtree import ElementTree
if 'mkdtemp' not in dir(tempfile): ##