8000 Tweak warning ignore for ubuntu and revert regex · python/cpython@7c7c78c · GitHub
[go: up one dir, main page]

Skip to content

Commit 7c7c78c

Browse files
committed
Tweak warning ignore for ubuntu and revert regex
1 parent da7bbde commit 7c7c78c

File tree

2 files changed

+31
-31
lines changed

2 files changed

+31
-31
lines changed

Tools/build/.warningignore_ubuntu

Lines changed: 30 additions & 30 deletions
< 8000 td data-grid-cell-id="diff-3533bec303eccedc6715d3137ce291aee5111653fdee0b8b69d9bc780cd663bf-34-33-0" data-selected="false" role="gridcell" style="background-color:var(--bgColor-default);text-align:center" tabindex="-1" valign="top" class="focusable-grid-cell diff-line-number position-relative diff-line-number-neutral left-side">34
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,12 @@
44
# Format example:
55
# /path/to/file (number of warnings in file)
66
Include/internal/pycore_gc.h 1
7+
Parser/string_parser.c 7
8+
Parser/lexer/buffer.c 1
79
Include/internal/pycore_backoff.h 3
810
Include/internal/pycore_list.h 1
911
Include/internal/mimalloc/mimalloc/internal.h 4
10-
Parser/pegen.c 8
11-
Parser/string_parser.c 7
1212
Parser/action_helpers.c 3
13-
Parser/lexer/buffer.c 1
1413
Parser/lexer/lexer.c 14
1514
Parser/tokenizer/file_tokenizer.c 9
1615
Parser/tokenizer/readline_tokenizer.c 4
@@ -27,29 +26,28 @@ Objects/stringlib/join.h 4
2726
Objects/stringlib/transmogrify.h 27
2827
Objects/bytesobject.c 50
2928
Objects/classobject.c 4
30-
Objects/codeobject.c 25
29+
Objects/codeobject.c 21
3130
Objects/descrobject.c 2
32-
Objects/fileobject.c 3
3331
Objects/genobject.c 3
32+
Objects/fileobject.c 3
33
Objects/floatobject.c 18
35-
Objects/frameobject.c 18
3634
Objects/funcobject.c 2
35+
Objects/frameobject.c 18
3736
Parser/parser.c 116
3837
Objects/odictobject.c 7
39-
Objects/listobject.c 42
40-
Objects/methodobject.c 1
41-
Objects/longobject.c 58
42-
Objects/memoryobject.c 12
38+
Objects/listobject.c 41
4339
Objects/stringlib/eq.h 1
4440
Objects/dictobject.c 35
41+
Objects/longobject.c 58
42+
Objects/methodobject.c 1
43+
Objects/memoryobject.c 12
4544
Objects/moduleobject.c 4
4645
Objects/object.c 1
4746
Objects/rangeobject.c 10
4847
Objects/sliceobject.c 4
4948
Objects/setobject.c 13
5049
Objects/structseq.c 13
5150
Objects/tupleobject.c 8
52-
Objects/unicodectype.c 7
5351
Objects/mimalloc/alloc.c 6
5452
Objects/mimalloc/arena.c 6
5553
Objects/mimalloc/heap.c 2
@@ -63,7 +61,8 @@ Objects/mimalloc/segment.c 11
6361
Objects/mimalloc/stats.c 5
6462
Objects/mimalloc/prim/unix/prim.c 6
6563
Objects/obmalloc.c 7
66-
Objects/typeobject.c 42
64+
Objects/unicodectype.c 7
65+
Objects/typeobject.c 44
6766
Python/asdl.c 3
6867
Python/assemble.c 11
6968
Python/ast_opt.c 5
@@ -74,14 +73,14 @@ Objects/stringlib/replace.h 5
7473
Objects/stringlib/repr.h 21
7574
Objects/stringlib/codecs.h 12
7675
Python/compile.c 8
77-
Python/context.c 1
7876
Python/Python-ast.c 14
77+
Python/context.c 1
78+
Python/errors.c 1
7979
Python/crossinterp_data_lookup.h 1
8080
Python/crossinterp.c 2
81+
Python/flowgraph.c 8
8182
Python/ceval.c 8
8283
Python/generated_cases.c.h 23
83-
Python/errors.c 1
84-
Python/flowgraph.c 8
8584
Python/frame.c 3
8685
Python/gc.c 8
8786
Python/getversion.c 1
@@ -90,8 +89,8 @@ Python/hashtable.c 1
9089
Python/ceval_gil.c 2
9190
Python/initconfig.c 3
9291
Python/import.c 6
92+
Python/instrumentation.c 43
9393
Python/intrinsics.c 1
94-
Python/instrumentation.c 42
9594
Python/lock.c 4
9695
Python/legacy_tracing.c 3
9796
Python/modsupport.c 3
@@ -105,12 +104,12 @@ Python/pytime.c 2
105104
Python/qsbr.c 2
106105
Python/pystate.c 6
107106
Python/bootstrap_hash.c 7
108-
Python/specialize.c 7
109107
Python/pylifecycle.c 7
108+
Python/specialize.c 7
110109
Python/thread_pthread.h 6
111110
Python/thread.c 1
112-
Python/symtable.c 18
113111
Python/traceback.c 6
112+
Python/symtable.c 18
114113
Python/sysmodule.c 3
115114
Python/tracemalloc.c 6
116115
Python/pystrtod.c 14
@@ -121,17 +120,17 @@ Python/formatter_unicode.c 6
121120
Python/fileutils.c 11
122121
Python/perf_trampoline.c 12
123122
Python/perf_jit_trampoline.c 32
124-
Modules/atexitmodule.c 1
125123
Modules/main.c 2
124+
Modules/atexitmodule.c 1
126125
Modules/faulthandler.c 5
127126
Modules/signalmodule.c 3
128127
Modules/_collectionsmodule.c 2
129128
Modules/_io/_iomodule.c 1
130129
Modules/_io/iobase.c 1
131130
Modules/_io/fileio.c 9
132131
Modules/_io/bytesio.c 15
133-
Modules/_io/stringio.c 8
134132
Modules/_io/bufferedio.c 16
133+
Modules/_io/stringio.c 8
135134
Modules/posixmodule.c 89
136135
Modules/_io/textio.c 17
137136
Modules/timemodule.c 10
@@ -172,29 +171,29 @@ Modules/_gdbmmodule.c 5
172171
Modules/_hacl/include/krml/FStar_UInt_8_16_32_64.h 4
173172
Modules/readline.c 1
174173
Modules/sha3module.c 4
175-
Modules/_blake2/blake2b_impl.c 12
176-
Modules/_blake2/blake2s_impl.c 12
174+
Modules/_hacl/Hacl_Hash_Blake2s_Simd128.c 18
175+
Modules/_hacl/Hacl_Hash_Blake2b_Simd256.c 18
177176
Modules/cjkcodecs/_codecs_cn.c 11
178177
Modules/expat/siphash.h 1
179178
Modules/expat/xmlparse.c 46
180-
Modules/cjkcodecs/_codecs_hk.c 2
181-
Modules/cjkcodecs/_codecs_iso2022.c 10
182179
Modules/expat/xmltok.c 13
183180
Modules/expat/xmltok_impl.c 8
184-
Modules/cjkcodecs/_codecs_kr.c 15
185-
Modules/cjkcodecs/_codecs_tw.c 4
181+
Modules/cjkcodecs/_codecs_hk.c 2
182+
Modules/cjkcodecs/_codecs_iso2022.c 10
186183
Modules/cjkcodecs/_codecs_jp.c 32
184+
Modules/cjkcodecs/_codecs_tw.c 4
185+
Modules/cjkcodecs/_codecs_kr.c 15
187186
Modules/fcntlmodule.c 6
188-
Modules/cjkcodecs/multibytecodec.c 13
189187
Modules/grpmodule.c 4
188+
Modules/cjkcodecs/multibytecodec.c 13
190189
Modules/resource.c 5
191190
Modules/mmapmodule.c 20
192191
Modules/_posixsubprocess.c 12
193192
Modules/selectmodule.c 4
193+
Modules/syslogmodule.c 3
194194
Modules/unicodedata_db.h 1
195195
Modules/unicodedata.c 28
196196
Modules/clinic/unicodedata.c.h 10
197-
Modules/syslogmodule.c 3
198197
Modules/_multiprocessing/posixshmem.c 1
199198
Modules/termios.c 1
200199
Modules/_multiprocessing/semaphore.c 1
@@ -213,8 +212,8 @@ Modules/_xxtestfuzz/_xxtestfuzz.c 1
213212
Modules/_xxtestfuzz/fuzzer.c 13
214213
Modules/_tkinter.c 10
215214
Modules/_ssl.c 31
216-
Modules/_testinternalcapi/test_lock.c 4
217215
Modules/_testbuffer.c 28
216+
Modules/_testinternalcapi/test_lock.c 4
218217
Modules/_testinternalcapi.c 10
219218
Modules/_testinternalcapi/test_critical_sections.c 1
220219
Modules/_testcapi/vectorcall.c 3
@@ -236,6 +235,7 @@ Modules/clinic/_testclinic.c.h 1
236235
Modules/_testclinic.c 1
237236
Modules/_ctypes/_ctypes_test_generated.c.h 363
238237
Modules/_ctypes/_ctypes_test.c 7
239-
Modules/getpath.c 7
238+
Modules/blake2module.c 8
240239
Modules/pyexpat.c 14
240+
Modules/getpath.c 7
241241
Modules/_elementtree.c 43

Tools/build/check_warnings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ def extract_warnings_from_compiler_output_json(
5757
"""
5858
# Regex to find json arrays at the top level of the file
5959
# in the compiler output
60-
json_arrays = re.findall(r'\[(?:[^\[\]]|\[(?:[^\[\]]|\[[^\[\]]*\])*\])*\]', compiler_output)
60+
json_arrays = re.findall(r"\[(?:[^[\]]|\[[^]]*])*]", compiler_output)
6161
compiler_warnings = []
6262
for array in json_arrays:
6363
try:

0 commit comments

Comments
 (0)
0