Skip to content

Commit ab1e4bb

Browse files
Rollup merge of #112499 - tgross35:py-ruff-fixes, r=Mark-Simulacrum
Fix python linting errors These were flagged by `ruff`, run using the config in rust-lang/rust#112482
2 parents 876a7d8 + 42ecb50 commit ab1e4bb

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

tools/generate_intrinsics.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
import re
44
import sys
55
import subprocess
6-
from os import walk
76

87

98
def run_command(command, cwd=None):
@@ -180,7 +179,7 @@ def update_intrinsics(llvm_path, llvmint, llvmint2):
180179
intrinsics[arch].sort(key=lambda x: (x[0], x[2]))
181180
out.write(' // {}\n'.format(arch))
182181
for entry in intrinsics[arch]:
183-
if entry[2] == True: # if it is a duplicate
182+
if entry[2] is True: # if it is a duplicate
184183
out.write(' // [DUPLICATE]: "{}" => "{}",\n'.format(entry[0], entry[1]))
185184
elif "_round_mask" in entry[1]:
186185
out.write(' // [INVALID CONVERSION]: "{}" => "{}",\n'.format(entry[0], entry[1]))

0 commit comments

Comments
 (0)