From 08058c1073a6e0853d7232ef18d180b04e8c0681 Mon Sep 17 00:00:00 2001
From: Zooko O'Whielacronx <zooko@zooko.com>
Date: Fri, 4 Jun 2010 00:58:05 -0700
Subject: [PATCH] fix syntax of assertion handling that isn't portable to older
 versions of Python

---
 src/allmydata/frontends/sftpd.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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()
 
-- 
2.45.2