Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix undefined variables #15

Merged
merged 1 commit into from
Jan 18, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions RASP_support/Evaluator.py
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ def _evaluateDictComp(self, ast):
if not (isinstance(d, list) or isinstance(d, dict)):
raise RASPTypeError(
"dict comprehension should have got a list or dict to loop "
+ "over, but got:", l)
+ "over, but got:", d)
res = {}
iterator_names = self._names_list(ast.iterator)
for vals in d:
Expand Down Expand Up @@ -500,7 +500,7 @@ def _evaluateAggregateExpr(self, ast):
default = self.evaluateExpr(ast.default) if ast.default else None

if not isinstance(sel, UnfinishedSelect):
raise RASPTypeError("Expected selector, got:", strdesc(selector))
raise RASPTypeError("Expected selector, got:", strdesc(sel))
if not isinstance(seq, UnfinishedSequence):
raise RASPTypeError("Expected sequence, got:", strdesc(seq))
if isinstance(default, Unfinished):
Expand Down Expand Up @@ -552,7 +552,7 @@ def _evaluateApplication(self, ast, unf):
if not isinstance(unf, Unfinished):
raise RASPTypeError("Applying unfinished expects to apply",
ENCODER_NAME, "or selector, got:",
strdesc(sel))
strdesc(unf))
if not isinstance(input_val, Iterable):
raise RASPTypeError(
"Applying unfinished expects iterable input, got:",
Expand Down
Loading