Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 785e30a

Browse files
committed
Add LPython changes so refs stay the same
It seem LPython and LFortran diverge slightly here. If we update it as per LFortran, then the reference tests change.
1 parent 945f4aa commit 785e30a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/libasr/pickle.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,13 +52,13 @@ class ASRPickleVisitor :
5252
}
5353
void visit_Module(const ASR::Module_t &x) {
5454
if (!show_intrinsic_modules &&
55-
startswith(x.m_name, "lfortran_intrinsic_")) {
55+
(x.m_intrinsic || startswith(x.m_name, "numpy"))) { // Divergence between LFortran and LPython
5656
s.append("(");
5757
if (use_colors) {
5858
s.append(color(style::bold));
5959
s.append(color(fg::magenta));
6060
}
61-
s.append("IntrinsicModule");
61+
s.append(x.m_intrinsic ? "IntrinsicModule" : "Module"); // Divergence between LFortran and LPython
6262
if (use_colors) {
6363
s.append(color(fg::reset));
6464
s.append(color(style::reset));

0 commit comments

Comments
 (0)