Skip to content

Commit

Permalink
str is a built-in function, so using it as a variable name will lead …
Browse files Browse the repository at this point in the history
…to spurious warnings in some Python linters
  • Loading branch information
fe2s committed Jun 24, 2015
1 parent 7d781a0 commit 31b6edc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dev/run-tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -481,7 +481,7 @@ def determine_java_version(java_exe):
raw_output_lines = raw_output.split('\n')

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

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

0 comments on commit 31b6edc

Please sign in to comment.