diff options
author | Andrey Smirnov <andrew.smirnov@gmail.com> | 2017-03-14 16:42:27 -0700 |
---|---|---|
committer | Thomas Petazzoni <thomas.petazzoni@free-electrons.com> | 2017-03-19 15:04:32 +0100 |
commit | 61fcd08247ddfd262123c3a4afad0cd376184811 (patch) | |
tree | 65c0ee2103941856b5d3d4b7d1345349d5829e16 /package/python-rpi-gpio | |
parent | d1103eeab34c60baf3a1f4b01306977b08bc3d2f (diff) | |
download | buildroot-61fcd08247ddfd262123c3a4afad0cd376184811.tar.gz buildroot-61fcd08247ddfd262123c3a4afad0cd376184811.zip |
scripts/pycompile: Accomodate latest Python 3 codebase
As of the version 3.6.0 compile_dir() call will treat its 'quiet'
argument as a full blown integer rather than a boolean value and perform
integer comparison operations such as '<' or '>='.
To account for that convert ReportProblem type to be a true derivative
of built-in int() and override all of int's rich comparison operators in
order to be able to "sniff" for PyCompileError in all possible use-cases
The integer value ReportProblem pretends to be is teremined by class
variable VALUE which is set to 1.
Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com>
Reviewed-by: Yegor Yefremov <yegorslists@googlemail.com>
Tested-by: Yegor Yefremov <yegorslists@googlemail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/python-rpi-gpio')
0 files changed, 0 insertions, 0 deletions