Partially revert "python: futurize -f libfuturize.fixes.fix_absolute_import"
commitbf20b675cc5a2568f1105c3577663978c5a13108
authorEduardo Habkost <ehabkost@redhat.com>
Thu, 21 Jun 2018 17:54:51 +0000 (21 14:54 -0300)
committerEduardo Habkost <ehabkost@redhat.com>
Fri, 22 Jun 2018 18:45:42 +0000 (22 15:45 -0300)
treed8328490cde9bb5b0b9fa2164d60c9a2d05fa919
parent7ed14cbf3cf083f125c079bd02b3215941853830
Partially revert "python: futurize -f libfuturize.fixes.fix_absolute_import"

Since commit 068cf7a44cd4d65c05aa877dbebced295be5ce44, qmp-shell
is broken:

  $ ./scripts/qmp/qmp-shell
  Traceback (most recent call last):
    File "./scripts/qmp/qmp-shell", line 70, in <module>
      from . import qmp
  ValueError: Attempted relative import in non-package

Relative imports don't work on scripts that are executed
directly, so revert the change on the scripts inside scripts/qmp.

Fixes: 068cf7a44cd4d65c05aa877dbebced295be5ce44
Reported-by: John Snow <jsnow@redhat.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Message-Id: <20180621175451.7948-1-ehabkost@redhat.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
scripts/qmp/qemu-ga-client
scripts/qmp/qmp
scripts/qmp/qmp-shell
scripts/qmp/qom-fuse
scripts/qmp/qom-get
scripts/qmp/qom-list
scripts/qmp/qom-set
scripts/qmp/qom-tree