Skip to content

Commit 4c43d3b

Browse files
author
Anthony Baxter
committed
fix nameerror. backport candidate
1 parent 023a0cd commit 4c43d3b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

detectors/emailauditor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ def eml_to_mht(db, cl, nodeid, newvalues):
2828
name extension.
2929
3030
So... we do that. :)'''
31-
if newalues.get('type', '').lower() == "message/rfc822":
31+
if newvalues.get('type', '').lower() == "message/rfc822":
3232
if not newvalues.has_key('name'):
3333
newvalues['name'] = 'email.mht'
3434
return

roundup/cgi/PageTemplates/MultiMapping.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ def get(self, key, default=_marker):
1717
raise KeyError, key
1818
return default
1919
def __len__(self):
20-
return reduce(operator.add, [len(x) for x in stores], 0)
20+
return reduce(operator.add, [len(x) for x in self.stores], 0)
2121
def push(self, store):
2222
self.stores.append(store)
2323
def pop(self):

0 commit comments

Comments
 (0)