Skip to content

Commit

Permalink
Add LPython changes so refs stay the same
Browse files Browse the repository at this point in the history
It seem LPython and LFortran diverge slightly here. If we update it as per LFortran, then the reference tests change.
  • Loading branch information
Shaikh-Ubaid committed Nov 12, 2023
1 parent 945f4aa commit 785e30a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/libasr/pickle.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,13 @@ class ASRPickleVisitor :
}
void visit_Module(const ASR::Module_t &x) {
if (!show_intrinsic_modules &&
startswith(x.m_name, "lfortran_intrinsic_")) {
(x.m_intrinsic || startswith(x.m_name, "numpy"))) { // Divergence between LFortran and LPython
s.append("(");
if (use_colors) {
s.append(color(style::bold));
s.append(color(fg::magenta));
}
s.append("IntrinsicModule");
s.append(x.m_intrinsic ? "IntrinsicModule" : "Module"); // Divergence between LFortran and LPython
if (use_colors) {
s.append(color(fg::reset));
s.append(color(style::reset));
Expand Down

0 comments on commit 785e30a

Please sign in to comment.