[libgames-support] style-checker: Fix PEP 8 style errors
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgames-support] style-checker: Fix PEP 8 style errors
- Date: Sun, 31 Jul 2016 01:07:00 +0000 (UTC)
commit eddeac7796e7815ee18cc71a2927cedc80859f9d
Author: Michael Catanzaro <mcatanzaro gnome org>
Date: Sat Jul 30 20:05:58 2016 -0500
style-checker: Fix PEP 8 style errors
Karma!
style-checker | 19 ++++++++++---------
1 files changed, 10 insertions(+), 9 deletions(-)
---
diff --git a/style-checker b/style-checker
index 44ebcce..064c9e2 100755
--- a/style-checker
+++ b/style-checker
@@ -131,8 +131,9 @@ def main():
nIssues += 1
elif getLineData(currLine, index - 2) == ' ' \
and getLineData(currLine, index - 1) != '_' \
- and not (re.findall("\s*{", getLineData(currLine)) != []
- and getLineData(currLine, 0) in ['\t', ' ']):
+ and not (re.findall("\s*{",
+ getLineData(currLine)) != [] and
+ getLineData(currLine, 0) in ['\t', ' ']):
printIssue(currLine, "multiple whitespace before {")
nIssues += 1
@@ -147,12 +148,11 @@ def main():
nIssues += 1
elif getLineData(currLine, index - 2) == ' ' \
and getLineData(currLine, index - 1) not in ['_', '('] \
- and not (getLineData(currLine).startswith(" *")
- or getLineData(currLine).startswith("#")
- or (re.findall("\s*\(",
- getLineData(currLine)) != []
- and getLineData(currLine, 0)
- in ['\t', ' '])):
+ and not (getLineData(currLine).startswith(" *") or
+ getLineData(currLine).startswith("#") or
+ (re.findall("\s*\(",
+ getLineData(currLine)) != [] and
+ getLineData(currLine, 0) in ['\t', ' '])):
printIssue(currLine, "multiple whitespace before (")
nIssues += 1
@@ -187,7 +187,8 @@ def main():
print("Your push has been rejected.")
return -1
elif os.path.basename(__file__) == 'pre-applypatch':
- print("We strongly recommend you to fix these. Continuing anyway....")
+ print("We strongly recommend you to fix these.")
+ print("Continuing anyway....")
else:
print("Guideline checker found no issues.")
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]