[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
- Re: [Qemu-devel] [PATCH v8 03/21] qapi: make TODOs named-sections, (continued)
- [Qemu-devel] [PATCH v8 04/21] qapi: improve device_add schema, Marc-André Lureau, 2017/01/13
- [Qemu-devel] [PATCH v8 05/21] qapi: improve TransactionAction doc, Marc-André Lureau, 2017/01/13
- [Qemu-devel] [PATCH v8 06/21] qga/schema: improve guest-set-vcpus Returns: section, Marc-André Lureau, 2017/01/13
- [Qemu-devel] [PATCH v8 07/21] qapi: avoid interleaving sections and parameters, Marc-André Lureau, 2017/01/13
- [Qemu-devel] [PATCH v8 09/21] qapi: add some sections in docs, Marc-André Lureau, 2017/01/13
- [Qemu-devel] [PATCH v8 10/21] docs: add master qapi texi files, Marc-André Lureau, 2017/01/13
- [Qemu-devel] [PATCH v8 08/21] qapi: move experimental note down, Marc-André Lureau, 2017/01/13
- [Qemu-devel] [PATCH v8 12/21] qapi.py: fix line break before binary operator pep8,
Marc-André Lureau <=
- [Qemu-devel] [PATCH v8 11/21] qapi: rework qapi Exception, Marc-André Lureau, 2017/01/13
- [Qemu-devel] [PATCH v8 13/21] texi2pod: learn quotation, deftp and deftypefn, Marc-André Lureau, 2017/01/13
- [Qemu-devel] [PATCH v8 17/21] build-sys: use --no-split for info, Marc-André Lureau, 2017/01/13
- [Qemu-devel] [PATCH v8 16/21] docs: add qemu logo to pdf, Marc-André Lureau, 2017/01/13
- [Qemu-devel] [PATCH v8 18/21] build-sys: remove dvi doc generation, Marc-André Lureau, 2017/01/13
- [Qemu-devel] [PATCH v8 19/21] build-sys: use a generic TEXI2MAN rule, Marc-André Lureau, 2017/01/13
- [Qemu-devel] [PATCH v8 20/21] build-sys: add txt documentation rules, Marc-André Lureau, 2017/01/13