diff --git a/ASTree.cpp b/ASTree.cpp index 547ca345..7fc77013 100644 --- a/ASTree.cpp +++ b/ASTree.cpp @@ -3294,7 +3294,8 @@ void print_src(PycRef node, PycModule* mod, std::ostream& pyc_output) { pyc_output << "\n"; start_line(cur_indent, pyc_output); - pyc_output << "class "; + pyc_output << "class " << node.cast()->name(). + cast()->object().cast()->value(); PycRef bases = node.cast()->bases().cast(); if (bases->values().size() > 0) {