qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH v8 12/21] qapi.py: fix line break before binary oper


From: Marc-André Lureau
Subject: [Qemu-devel] [PATCH v8 12/21] qapi.py: fix line break before binary operator pep8
Date: Fri, 13 Jan 2017 15:41:26 +0100

Python code style accepts both form, but pep8 complains. Better to clean
up the single warning for now, so new errors stand out more easily.

Fix scripts/qapi.py:1539:21: W503 line break before binary operator

Signed-off-by: Marc-André Lureau <address@hidden>
---
 scripts/qapi.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/scripts/qapi.py b/scripts/qapi.py
index 1483ec09f5..3d5f9e1eaf 100644
--- a/scripts/qapi.py
+++ b/scripts/qapi.py
@@ -1535,8 +1535,8 @@ def c_name(name, protect=True):
     # namespace pollution:
     polluted_words = set(['unix', 'errno', 'mips', 'sparc'])
     name = name.translate(c_name_trans)
-    if protect and (name in c89_words | c99_words | c11_words | gcc_words
-                    | cpp_words | polluted_words):
+    if protect and (name in c89_words | c99_words | c11_words | gcc_words |
+                    cpp_words | polluted_words):
         return "q_" + name
     return name
 
-- 
2.11.0




reply via email to

[Prev in Thread] Current Thread [Next in Thread]