Skip to content

Commit 07396c7

Browse files
Update quackery_OOP_ASYNC.py
1 parent 5a3ad6f commit 07396c7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

quackery_OOP_ASYNC.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -216,12 +216,12 @@ async def sub_build():
216216
if nesting < 0:
217217
raise SyntaxError('Unexpected end of nest.')
218218
return the_nest
219-
elif word in self.builders.keys():
219+
elif word in self.builders:
220220
try:
221221
await (self.builders[word](self))
222222
except TypeError:
223223
pass
224-
elif word in self.operators.keys():
224+
elif word in self.operators:
225225
the_nest.append(self.operators[word])
226226
elif isinteger(word):
227227
the_nest.append(int(word, 10))
@@ -1651,7 +1651,7 @@ async def quackery(source_string, ctx = None):
16511651
ctx = QuackeryContext()
16521652
else:
16531653
for required_word in ('stacksize', 'pack', 'decimal', 'unbuild', 'quackery'):
1654-
if required_word not in ctx.operators.keys():
1654+
if required_word not in ctx.operators:
16551655
raise NameError('QuackeryContext must have word %s defined.' % required_word)
16561656

16571657
while True:

0 commit comments

Comments
 (0)