https://bugs.llvm.org/show_bug.cgi?id=49617
Bug ID: 49617
Summary: check_cfc - python changes for check_cfc.py and
obj_diff.py
Product: new-bugs
Version: 11.0
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: new bugs
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected]
I changed the following lines in my copies here because the two original lines
failed with my recent python version. Python 3.8.6
llvm-project/clang/utils/check_cfc$ diff check_cfc.py.original check_cfc.py
325c325,326
< config.readfp(io.BytesIO(default_config))
---
> # config.readfp(io.BytesIO(default_config))
> config.read_string(default_config)
llvm-project/clang/utils/check_cfc$ diff obj_diff.py.original obj_diff.py
28c28,30
< return [line for line in out.split(os.linesep) if keep_line(line)]
---
>
> # return [line for line in out.split(os.linesep) if keep_line(line)]
> return [line for line in out.decode().split(os.linesep) if
> keep_line(line)]
Also picking up the following warning but did not quickly see a fix.
DeprecationWarning: the imp module is deprecated in favour of importlib; see
the module's documentation for alternative uses
import imp
--
You are receiving this mail because:
You are on the CC list for the bug._______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs