Re: [Qemu-devel] [PATCH v2 02/10] python: futurize -f libfuturize.fixes.fix_absolute_import

2018-06-08 Thread Stefan Hajnoczi
On Fri, Jun 08, 2018 at 09:29:44AM -0300, Eduardo Habkost wrote: > Make implicit relative imports explicit and add "from __future__ import > absolute_import" at the top of each relevant module. > > This is necessary for Python 3 compatibility. > > Done using: > > $ py=$( (g grep -l -E

[Qemu-devel] [PATCH v2 02/10] python: futurize -f libfuturize.fixes.fix_absolute_import

2018-06-08 Thread Eduardo Habkost
Make implicit relative imports explicit and add "from __future__ import absolute_import" at the top of each relevant module. 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)