]> git.proxmox.com Git - mirror_qemu.git/commit - scripts/qapi-introspect.py
qapi: Prefer single-quoted strings more consistently
authorMarkus Armbruster <armbru@redhat.com>
Wed, 15 Mar 2017 12:57:08 +0000 (13:57 +0100)
committerMarkus Armbruster <armbru@redhat.com>
Thu, 16 Mar 2017 06:13:02 +0000 (07:13 +0100)
commitef801a9bb1e2cf276a8482c4ad1910f72de223f8
treee00e87806c5bcc5770bc65c6b4495194aef51dfc
parent0fe675af77e922f3901552be4ac0c454b7dad43d
qapi: Prefer single-quoted strings more consistently

PEP 8 advises:

    In Python, single-quoted strings and double-quoted strings are the
    same.  This PEP does not make a recommendation for this.  Pick a
    rule and stick to it.  When a string contains single or double
    quote characters, however, use the other one to avoid backslashes
    in the string.  It improves readability.

The QAPI generators succeed at picking a rule, but fail at sticking to
it.  Convert a bunch of double-quoted strings to single-quoted ones.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Message-Id: <1489582656-31133-20-git-send-email-armbru@redhat.com>
scripts/qapi-event.py
scripts/qapi-introspect.py
scripts/qapi-types.py
scripts/qapi-visit.py
scripts/qapi.py
scripts/qapi2texi.py