Skip to content

Commit

Permalink
Rollup merge of #112499 - tgross35:py-ruff-fixes, r=Mark-Simulacrum
Browse files Browse the repository at this point in the history
Fix python linting errors

These were flagged by `ruff`, run using the config in rust-lang/rust#112482
  • Loading branch information
compiler-errors authored Jun 20, 2023
2 parents 876a7d8 + 42ecb50 commit ab1e4bb
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tools/generate_intrinsics.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import re
import sys
import subprocess
from os import walk


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

0 comments on commit ab1e4bb

Please sign in to comment.