Fix assigning None in 2.5
This commit is contained in:
@@ -1431,6 +1431,12 @@ static void end_line()
|
|||||||
int cur_indent = -1;
|
int cur_indent = -1;
|
||||||
void print_src(PycRef<ASTNode> node, PycModule* mod)
|
void print_src(PycRef<ASTNode> node, PycModule* mod)
|
||||||
{
|
{
|
||||||
|
if (node == Node_NULL) {
|
||||||
|
printf("None");
|
||||||
|
cleanBuild = true;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
switch (node->type()) {
|
switch (node->type()) {
|
||||||
case ASTNode::NODE_BINARY:
|
case ASTNode::NODE_BINARY:
|
||||||
case ASTNode::NODE_COMPARE:
|
case ASTNode::NODE_COMPARE:
|
||||||
|
Reference in New Issue
Block a user