From: Fredrik Tolf Date: Mon, 27 Aug 2012 05:49:25 +0000 (+0200) Subject: Make sure to properly close form multiparts on __exit__. X-Git-Url: http://git.dolda2000.com/gitweb/?a=commitdiff_plain;h=4e033e2bd4253b3d034fa1708aa3e5ef81bf565e;p=wrw.git Make sure to properly close form multiparts on __exit__. --- diff --git a/wrw/form.py b/wrw/form.py index 1f0e530..9f1e6d4 100644 --- a/wrw/form.py +++ b/wrw/form.py @@ -111,6 +111,7 @@ class formpart(object): return self def __exit__(self, *excinfo): + self.close() return False def parsehead(self):