From 4e033e2bd4253b3d034fa1708aa3e5ef81bf565e Mon Sep 17 00:00:00 2001 From: Fredrik Tolf Date: Mon, 27 Aug 2012 07:49:25 +0200 Subject: [PATCH] Make sure to properly close form multiparts on __exit__. --- wrw/form.py | 1 + 1 file changed, 1 insertion(+) 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): -- 2.11.0