diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2021-01-29 18:03:51 +0000 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2021-01-29 18:03:51 +0000 |
commit | d7ed2b01311f15ba54fe8ea872aab7d59ab2b193 (patch) | |
tree | 1814dd2b5bbf2e7639fdafbeef48d228cfaf5e9b /dev-util/roctracer/files | |
parent | abaa75b10f899ada8dd05b23cc03205064394bc6 (diff) |
gentoo resync : 29.01.2021
Diffstat (limited to 'dev-util/roctracer/files')
-rw-r--r-- | dev-util/roctracer/files/roctracer-3.8.0-gen_ostream_ops-toPython3.patch | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/dev-util/roctracer/files/roctracer-3.8.0-gen_ostream_ops-toPython3.patch b/dev-util/roctracer/files/roctracer-3.8.0-gen_ostream_ops-toPython3.patch new file mode 100644 index 000000000000..b73949b92331 --- /dev/null +++ b/dev-util/roctracer/files/roctracer-3.8.0-gen_ostream_ops-toPython3.patch @@ -0,0 +1,28 @@ +--- a/script/gen_ostream_ops.py 2020-09-27 11:23:37.833756185 +0200 ++++ b/script/gen_ostream_ops.py 2020-09-27 11:21:25.763756688 +0200 +@@ -176,9 +176,9 @@ + process_struct(f, c, cppHeader, "", apiname) + global_str = "\n".join(global_str.split("\n")[0:-2]) + if structs_depth != -1: #reindent +- global_str = string.split(global_str, '\n') +- global_str = [' ' + string.lstrip(line) for line in global_str] +- global_str = string.join(global_str, '\n') ++ global_str = global_str.split('\n') ++ global_str = [' ' + line.lstrip() for line in global_str] ++ global_str = str.join('\n', global_str) + f.write(global_str+"\n") + if structs_depth != -1: + f.write(" };\n") +@@ -199,9 +199,9 @@ + process_struct(f, c, cppHeader, "", apiname) + global_str = "\n".join(global_str.split("\n")[0:-2]) + if structs_depth != -1: #reindent +- global_str = string.split(global_str, '\n') +- global_str = [' ' + string.lstrip(line) for line in global_str] +- global_str = string.join(global_str, '\n') ++ global_str = global_str.split('\n') ++ global_str = [' ' + line.lstrip() for line in global_str] ++ global_str = str.join('\n', global_str) + f.write(global_str+"\n") + if structs_depth != -1: + f.write(" };\n") |