remove usage of keys()
This commit is contained in:
parent
7f0d2e03d9
commit
8a7026c5a9
3 changed files with 3 additions and 3 deletions
|
|
@ -272,7 +272,7 @@ class SpiritBoard(displayio.Group):
|
|||
# loop over each character in the word
|
||||
for character in word:
|
||||
# if the character is in our locations mapping
|
||||
if character in SpiritBoard.LOCATIONS.keys():
|
||||
if character in SpiritBoard.LOCATIONS:
|
||||
# slide the planchette to the current characters location
|
||||
self.slide_planchette(SpiritBoard.LOCATIONS[character],
|
||||
delay=delay, step_size=step_size)
|
||||
|
|
|
|||
|
|
@ -272,7 +272,7 @@ class SpiritBoard(displayio.Group):
|
|||
# loop over each character in the word
|
||||
for character in word:
|
||||
# if the character is in our locations mapping
|
||||
if character in SpiritBoard.LOCATIONS.keys():
|
||||
if character in SpiritBoard.LOCATIONS:
|
||||
# slide the planchette to the current characters location
|
||||
self.slide_planchette(SpiritBoard.LOCATIONS[character],
|
||||
delay=delay, step_size=step_size)
|
||||
|
|
|
|||
|
|
@ -272,7 +272,7 @@ class SpiritBoard(displayio.Group):
|
|||
# loop over each character in the word
|
||||
for character in word:
|
||||
# if the character is in our locations mapping
|
||||
if character in SpiritBoard.LOCATIONS.keys():
|
||||
if character in SpiritBoard.LOCATIONS:
|
||||
# slide the planchette to the current characters location
|
||||
self.slide_planchette(SpiritBoard.LOCATIONS[character],
|
||||
delay=delay, step_size=step_size)
|
||||
|
|
|
|||
Loading…
Reference in a new issue