[Erp5-report] r45662 luke - /erp5/trunk/utils/z2loganalyser/analyzeZ2log.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Fri Apr 22 16:57:27 CEST 2011
Author: luke
Date: Fri Apr 22 16:57:27 2011
New Revision: 45662
URL: http://svn.erp5.org?rev=45662&view=rev
Log:
- remove not needed comments
Modified:
erp5/trunk/utils/z2loganalyser/analyzeZ2log.py
Modified: erp5/trunk/utils/z2loganalyser/analyzeZ2log.py
URL: http://svn.erp5.org/erp5/trunk/utils/z2loganalyser/analyzeZ2log.py?rev=45662&r1=45661&r2=45662&view=diff
==============================================================================
--- erp5/trunk/utils/z2loganalyser/analyzeZ2log.py [utf8] (original)
+++ erp5/trunk/utils/z2loganalyser/analyzeZ2log.py [utf8] Fri Apr 22 16:57:27 2011
@@ -131,7 +131,6 @@ class Executor:
regexp_match = regexp.match
result_dict = {}
- # Z2.log-20090430.gz
for filename in glob.glob(self.config.directory_path + '/' + self.config.pattern):
f = gzip.open(filename, 'rb')
@@ -142,14 +141,12 @@ class Executor:
except AttributeError:
continue
else:
- # date = datetime.date(int(result['year']), 12, int(result['day']))
format = '%d/%b/%Y:%H:%M:%S'
date = datetime.datetime.strptime(result['date'], format)
user = result['user']
if user in ('', 'Anonymous', None):
continue
- # ordinal = date.date().toordinal()
ordinal = date.date().isoformat()
time = date.time().isoformat()
try:
More information about the Erp5-report
mailing list