python: futurize -f lib2to3.fixes.fix_numliterals
commit4803c5cde8afa3f8b8fc1bc639ebf4f4fccddf94
authorEduardo Habkost <ehabkost@redhat.com>
Fri, 8 Jun 2018 12:29:52 +0000 (8 09:29 -0300)
committerEduardo Habkost <ehabkost@redhat.com>
Fri, 8 Jun 2018 17:39:24 +0000 (8 14:39 -0300)
tree041f3997b68fd08f0ac8ca02c4c0e7fd651d6eb2
parentbd228083f7364dd2903970ec4dc0cc55bf156104
python: futurize -f lib2to3.fixes.fix_numliterals

Convert octal literals into the new syntax.

This is necessary for Python 3 compatibility.

Done using:

  $ py=$( (g grep -l -E '^#!.*python';find -name '*.py' -printf '%P\n';) | \
    sort -u | grep -v README.sh4)
  $ futurize -w -f lib2to3.fixes.fix_numliterals $py

Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Message-Id: <20180608122952.2009-11-ehabkost@redhat.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
scripts/qmp/qom-fuse
tests/qemu-iotests/118