2015-04-10 16:35:46 +02:00
|
|
|
From: Ludwig Nussel <ludwig.nussel@suse.de>
|
|
|
|
Date: Fri, 10 Apr 2015 16:22:26 +0200
|
2015-04-20 16:11:01 +02:00
|
|
|
Subject: [PATCH] save content to an array
|
|
|
|
MIME-Version: 1.0
|
|
|
|
Content-Type: text/plain; charset=UTF-8
|
|
|
|
Content-Transfer-Encoding: 8bit
|
2015-04-10 16:35:46 +02:00
|
|
|
|
|
|
|
due to the following join the generator would be at the end so iterating
|
|
|
|
through lines wouldn't work
|
|
|
|
|
2015-04-20 16:11:01 +02:00
|
|
|
Modified-by: Ville Skyttä <ville.skytta@iki.fi> (pep8 fixes)
|
2015-04-10 16:35:46 +02:00
|
|
|
---
|
|
|
|
InitScriptCheck.py | 2 +-
|
|
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
|
|
|
|
diff --git a/InitScriptCheck.py b/InitScriptCheck.py
|
2015-04-20 16:11:01 +02:00
|
|
|
index 1a58562..aab1d2d 100644
|
2015-04-10 16:35:46 +02:00
|
|
|
--- a/InitScriptCheck.py
|
|
|
|
+++ b/InitScriptCheck.py
|
|
|
|
@@ -103,7 +103,7 @@ class InitScriptCheck(AbstractCheck.AbstractCheck):
|
|
|
|
# check common error in file content
|
|
|
|
content = None
|
|
|
|
try:
|
|
|
|
- content = Pkg.readlines(pkgfile.path)
|
2015-04-20 16:11:01 +02:00
|
|
|
+ content = [x for x in Pkg.readlines(pkgfile.path)]
|
2015-04-10 16:35:46 +02:00
|
|
|
except Exception:
|
|
|
|
e = sys.exc_info()[1]
|
|
|
|
printWarning(pkg, 'read-error', e)
|