Révision f776b7e0
Fix spelling mistakes in variable names
Thanks, codespell!
| plugins/zope/zope_conflict_errors | ||
|---|---|---|
| 46 | 46 |
log = logs[i] |
| 47 | 47 |
error_count = 0 |
| 48 | 48 |
for line in file(log): |
| 49 |
splitted = line.split()
|
|
| 50 |
if 'ConflictError' in splitted:
|
|
| 51 |
logdate = datetime(*time.strptime(splitted[0], date_format)[:-3])
|
|
| 49 |
tokens = line.split()
|
|
| 50 |
if 'ConflictError' in tokens:
|
|
| 51 |
logdate = datetime(*time.strptime(tokens[0], date_format)[:-3])
|
|
| 52 | 52 |
delta = datetime.now() - logdate |
| 53 | 53 |
if delta.days >= 1: |
| 54 | 54 |
continue |
Formats disponibles : Unified diff