]> rtime.felk.cvut.cz Git - coffee/buildroot.git/commit
utils/scanpypi: don't pass any arguments to main()
authorAlexey Roslyakov <alexey.roslyakov@gmail.com>
Thu, 20 Jul 2017 05:26:37 +0000 (12:26 +0700)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Thu, 20 Jul 2017 20:27:58 +0000 (22:27 +0200)
commitc2877a2a8b9ac4ddf4359b5ee7266acd78a87c1d
treef00e304f589dd280c12f5c2851b2923bf60bef6a
parent6d64451b6368f9bdac110c7bebbdf20e74e1212b
utils/scanpypi: don't pass any arguments to main()

'if __name__ == "__main__"' idiom typically calls main function that
doesn't take any arguments in most cases. We shouldn't pass any tuple to
it.
I've tested the script with python-idna-2.5 and now it works with this
little change.

Signed-off-by: Alexey Roslyakov <alexey.roslyakov@gmail.com>
Reviewed-by: Yegor Yefremov <yegorslists@googlemail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
utils/scanpypi