]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
fix syntax of assertion handling that isn't portable to older versions of Python
authorZooko O'Whielacronx <zooko@zooko.com>
Fri, 4 Jun 2010 07:58:05 +0000 (00:58 -0700)
committerZooko O'Whielacronx <zooko@zooko.com>
Fri, 4 Jun 2010 07:58:05 +0000 (00:58 -0700)
src/allmydata/frontends/sftpd.py

index 60e1117d769c7f2589d1cd90f960d690d7bcb4c2..de401fd1ea739ac01fda84b1346565c107a5370c 100644 (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()