From: Zooko O'Whielacronx Date: Fri, 4 Jun 2010 07:58:05 +0000 (-0700) Subject: fix syntax of assertion handling that isn't portable to older versions of Python X-Git-Url: https://git.rkrishnan.org/components/com_hotproperty/bar.txt?a=commitdiff_plain;h=08058c1073a6e0853d7232ef18d180b04e8c0681;p=tahoe-lafs%2Ftahoe-lafs.git fix syntax of assertion handling that isn't portable to older versions of Python --- diff --git a/src/allmydata/frontends/sftpd.py b/src/allmydata/frontends/sftpd.py index 60e1117d..de401fd1 100644 --- a/src/allmydata/frontends/sftpd.py +++ b/src/allmydata/frontends/sftpd.py @@ -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()