Thank you very much. I should have added that I did that and it ran. I had
one other error in the script thta I missed. I fixed that and it ran, then
I named them as recommended and it still works and fits better with
conventions, so I learned two things.
On Fri, Jun 3, 2011 at 1:05 AM, Alan Ga
> class Log_Parser:
It is highly recommended that you use new-style classes which would be
class Log_Parser(object):
Ramit
Ramit Prasad | JPMorgan Chase Investment Bank | Currencies Technology
712 Main Street | Houston, TX 77002
work phone: 713 - 216 - 5423
This communication is for informa
"Becky Mcquilling" wrote
The Second script written here, always raises the exception and I'm
missing
why, any advice?
class Log_Parser:
def __init__(self):
self.re_backup_status = re.compile(r'^\s+Files\s+:\s+\d',
re.IGNORECASE)
def log_parse(self, log_file):
try:
So I'm new to doing creating classes in python and took a script I had
written to parse a log file and tried to create a class just to understand
it a little better. The first script below works fine.
It looks at the log, checks the date and if it's too old, raises the
exception and returns a set