Skip to content

Commit a45ebea

Browse files
committed
use .isalpha()
1 parent ab9774f commit a45ebea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/test_other.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10106,7 +10106,7 @@ def test_standalone_system_headers(self, prefix):
1010610106
# Process files depending on first char of the file in different test cases for parallelization, though
1010710107
# special case SDL_ prefix to parallelize better.
1010810108
first_char = (header[4] if header.startswith('SDL_') else header[0]).lower()
10109-
if first_char not in prefix or (prefix == '*' and ord(first_char) >= ord('a') and ord(first_char) <= ord('z')):
10109+
if first_char not in prefix or (prefix == '*' and first_char.isalpha()):
1011010110
continue
1011110111

1011210112
print('header: ' + header)

0 commit comments

Comments
 (0)