Skip to content

Commit ee87010

Browse files
committed
Fix autocompletion mode lookup
1 parent 76aad2f commit ee87010

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bpython/autocomplete.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ class AutocompleteModes(Enum):
4848

4949
@classmethod
5050
def from_string(cls, value):
51-
if value in cls.__members__:
52-
return cls.__members__[value]
51+
if value.upper() in cls.__members__:
52+
return cls.__members__[value.upper()]
5353
return None
5454

5555

0 commit comments

Comments
 (0)