On Sat, 26 Jan 2019 at 11:43, Jouni Malinen <j@xxxxx> wrote: > > On Thu, Jan 24, 2019 at 04:45:42PM +0900, Masashi Honma wrote: > > This patch is made by using 2to3 command. > > > > $ find . -name *.py | xargs 2to3 -f print -w -n > > This seems to break couple of things: > > > diff --git a/tests/hwsim/vm/parallel-vm.py b/tests/hwsim/vm/parallel-vm.py > > > - print("\rStarting virtual machine {}/{}".format(i + 1, num_servers)), > > + print(("\rStarting virtual machine {}/{}".format(i + 1, num_servers)), end=' ') > > This needs "from __future__ import print_function" to work with python2. > > > - print > > + print() > > I guess same workaround could be used here as well since python2 would > print out "()\n" here instead of the expected "\n". Converting this to > "print('')" looks safer. In fact, a better approach is to from __future__ import print_function at the beginning of the file. -- Cheers, Andrej _______________________________________________ Hostap mailing list Hostap@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/hostap