commit 21c6dc80fdf719f18118de46452c9c9d52ec1db2 parent ac54587c59ad0bdd7c84681f295d924f27019644 Author: Christoph Lohmann <20h@r-36.net> Date: Mon, 22 May 2017 19:31:12 +0200 Close the right object. Diffstat:
zeitungsschau/feed.py | | | 2 | +- |
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/zeitungsschau/feed.py b/zeitungsschau/feed.py @@ -351,7 +351,7 @@ def fetch(uri): s.shutdown(1) fd = s.makefile("r") fval = fd.read().encode("utf-8") - fd.close() + s.close() rcode = 200 else: fd = requests.get(uri, timeout=20,\