From a7b9226667935158501fe39a56bcd1066359fa18 Mon Sep 17 00:00:00 2001 From: Laurent Peuch Date: Sun, 30 Oct 2016 05:23:32 +0100 Subject: [PATCH] [mod] lisibility --- src/yunohost/certificate.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/yunohost/certificate.py b/src/yunohost/certificate.py index 94defcd2b..b1efb3725 100644 --- a/src/yunohost/certificate.py +++ b/src/yunohost/certificate.py @@ -667,8 +667,10 @@ def _name_selfCA(): def _tail(n, file_path): stdin, stdout = os.popen2("tail -n %s '%s'" % (n, file_path)) + stdin.close() + lines = stdout.readlines() stdout.close() - lines = "".join(lines) - return lines + + return "".join(lines)