Skip to content

Commit 8d21739

Browse files
committed
Remove a branch
1 parent f924f2c commit 8d21739

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

bpython/autocomplete.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -175,10 +175,7 @@ def few_enough_underscores(current, match):
175175
return True
176176
elif current.startswith("_") and not match.startswith("__"):
177177
return True
178-
elif match.startswith("_"):
179-
return False
180-
else:
181-
return True
178+
return not match.startswith("_")
182179

183180

184181
def method_match_simple(word, size, text):

0 commit comments

Comments
 (0)