Skip to content
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
fix str.center()
  • Loading branch information
farah-salama committed Apr 14, 2024
commit 6c481ce25560de4009b299e308e6ddae2a8141f7
2 changes: 1 addition & 1 deletion src/lpython/semantics/python_ast_to_asr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6881,7 +6881,7 @@ class BodyVisitor : public CommonVisitor<BodyVisitor> {
fn_args.push_back(al, value);
}
} else if(attr_name == "center") {
if (args.size() != 1 || args.size() != 2) {
if (args.size() != 1 && args.size() != 2) {
throw SemanticError("str.center() takes one or two argument",
loc);
}
Expand Down