Skip to content

Commit 8b23b3b

Browse files
modelmatcalcmogul
authored andcommitted
Simplify number in range comparison
1 parent 51840ef commit 8b23b3b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

wpiformat/wpiformat/includeorder.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ def rebuild_include(name_match, group_number):
142142
143143
Returns include name with approriate brackets and "#include" prefix.
144144
"""
145-
if group_number >= 1 and group_number <= 3:
145+
if 1 <= group_number <= 3:
146146
output = "#include <" + name_match.group("name") + ">" + \
147147
name_match.group("postfix")
148148
else:

0 commit comments

Comments
 (0)