Skip to content

Commit 31b6edc

Browse files
committed
str is a built-in function, so using it as a variable name will lead to spurious warnings in some Python linters
1 parent 7d781a0 commit 31b6edc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dev/run-tests.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -481,7 +481,7 @@ def determine_java_version(java_exe):
481481
raw_output_lines = raw_output.split('\n')
482482

483483
# find raw version string, eg 'java version "1.8.0_25"'
484-
raw_version_str = next(str for str in raw_output_lines if " version " in str)
484+
raw_version_str = next(x for x in raw_output_lines if " version " in x)
485485

486486
version_str = raw_version_str.split()[-1].strip('"') # eg '1.8.0_25'
487487
version, update = version_str.split('_') # eg ['1.8.0', '25']

0 commit comments

Comments
 (0)