diff options
author | Jeremy Cline <[email protected]> | 2018-08-17 15:44:01 -0700 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2018-08-17 16:20:27 -0700 |
commit | bed95c43c15eb6b1ccc5b09e5ae08cac726c456d (patch) | |
tree | 7e65fdd4f065437bbe1b534efb89fae47dc87ceb /tools/perf/scripts/python/mem-phys-addr.py | |
parent | fde5e903fb5893415fa49d280e998be226d0898f (diff) |
scripts: add Python 3 compatibility to spdxcheck.py
"dict.has_key(key)" on dictionaries has been replaced with "key in
dict". Additionally, when run under Python 3 some files don't decode
with the default encoding (tested with UTF-8). To handle that, don't
open the file in text mode and decode text line-by-line, ignoring
encoding errors.
This remains compatible with Python 2 and should have no functional
change.
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Jeremy Cline <[email protected]>
Acked-by: Thomas Gleixner <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/mem-phys-addr.py')
0 files changed, 0 insertions, 0 deletions