[llvm-bugs] [Bug 49617] New: check_cfc - python changes for check_cfc.py and obj_diff.py
via llvm-bugs
llvm-bugs at lists.llvm.org
Wed Mar 17 10:16:28 PDT 2021
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: unassignedbugs at nondot.org
Reporter: nnelson at infowest.com
CC: htmldeveloper at gmail.com, llvm-bugs at lists.llvm.org
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20210317/b0068e03/attachment.html>
More information about the llvm-bugs
mailing list