[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH v7 12/21] qapi.py: fix line break before binary oper
From: |
Marc-André Lureau |
Subject: |
[Qemu-devel] [PATCH v7 12/21] qapi.py: fix line break before binary operator pep8 |
Date: |
Mon, 9 Jan 2017 15:34:28 +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
- [Qemu-devel] [PATCH v7 02/21] qapi: move QKeyCode doc body at the top, (continued)
- [Qemu-devel] [PATCH v7 02/21] qapi: move QKeyCode doc body at the top, Marc-André Lureau, 2017/01/09
- [Qemu-devel] [PATCH v7 06/21] qga/schema: improve guest-set-vcpus Returns: section, Marc-André Lureau, 2017/01/09
- [Qemu-devel] [PATCH v7 05/21] qapi: improve TransactionAction doc, Marc-André Lureau, 2017/01/09
- [Qemu-devel] [PATCH v7 07/21] qapi: avoid interleaving sections and parameters, Marc-André Lureau, 2017/01/09
- [Qemu-devel] [PATCH v7 08/21] qapi: move experimental note down, Marc-André Lureau, 2017/01/09
- [Qemu-devel] [PATCH v7 09/21] qapi: add some sections in docs, Marc-André Lureau, 2017/01/09
- [Qemu-devel] [PATCH v7 12/21] qapi.py: fix line break before binary operator pep8,
Marc-André Lureau <=
[Qemu-devel] [PATCH v7 13/21] texi2pod: learn quotation, deftp and deftypefn, Marc-André Lureau, 2017/01/09
[Qemu-devel] [PATCH v7 10/21] docs: add master qapi texi files, Marc-André Lureau, 2017/01/09
[Qemu-devel] [PATCH v7 11/21] qapi: rework qapi Exception, Marc-André Lureau, 2017/01/09
[Qemu-devel] [PATCH v7 20/21] build-sys: add txt documentation rules, Marc-André Lureau, 2017/01/09
[Qemu-devel] [PATCH v7 19/21] build-sys: use a generic TEXI2MAN rule, Marc-André Lureau, 2017/01/09