From 7abde97c8aa487fffa80c81018100619039ebdc2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=A1=D0=B0=D0=BC=D0=BE=D1=83=D0=BA=D0=B8=D0=BD=20=D0=90?= =?UTF-8?q?=D0=BB=D0=B5=D0=BA=D1=81=D0=B5=D0=B9?= Date: Wed, 15 Sep 2010 10:25:42 +0400 Subject: [PATCH] Bugfix --- pym/cl_utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pym/cl_utils.py b/pym/cl_utils.py index 3a2efef..5e50f65 100644 --- a/pym/cl_utils.py +++ b/pym/cl_utils.py @@ -286,9 +286,9 @@ def runOsCommand(cmd,in_str=None, env_dict=None): if in_str: fin.write(in_str) fin.close() - res = fout.read().split("\n") + res = map(lambda x: x.rstrip(), fout.readlines()) fout.close() - res += ferr.read().split("\n") + res += map(lambda x: x.rstrip(), ferr.readlines()) ferr.close() # Код возврата retcode = pipe.wait()