fix syntax of assertion handling that isn't portable to older versions of Python

This commit is contained in:
Zooko O'Whielacronx 2010-06-04 00:58:05 -07:00
parent 0eb4d83937
commit 08058c1073

View File

@ -560,7 +560,7 @@ class OverwriteableFileConsumer(PrefixingLogMixin):
self.is_closed = True
try:
self.f.close()
except BaseException as e:
except BaseException, e:
self.log("suppressed %r from close of temporary file %r" % (e, self.f), level=WEIRD)
self.finish()