Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
58c2151b
Commit
58c2151b
authored
Nov 13, 2005
by
Neal Norwitz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove useless debug print helper. fix a couple of exceptions
parent
8534aac4
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
7 deletions
+4
-7
Python/ast.c
Python/ast.c
+4
-7
No files found.
Python/ast.c
View file @
58c2151b
...
...
@@ -14,10 +14,6 @@
#include <assert.h>
#if 0
#define fprintf if (0) fprintf
#endif
/* XXX TO DO
- re-indent this file (should be done)
- internal error checking (freeing memory, etc.)
...
...
@@ -908,7 +904,7 @@ count_list_fors(const node *n)
}
else
{
/* Should never be reached */
PyErr_SetString
(
PyExc_
Exception
,
"logic error in count_list_fors"
);
PyErr_SetString
(
PyExc_
SystemError
,
"logic error in count_list_fors"
);
return
-
1
;
}
}
...
...
@@ -1076,7 +1072,8 @@ count_gen_fors(const node *n)
}
else
{
/* Should never be reached */
PyErr_SetString
(
PyExc_Exception
,
"logic error in count_gen_fors"
);
PyErr_SetString
(
PyExc_SystemError
,
"logic error in count_gen_fors"
);
return
-
1
;
}
}
...
...
@@ -2760,7 +2757,7 @@ ast_for_try_stmt(struct compiling *c, const node *n)
return
TryExcept
(
suite_seq1
,
handlers
,
suite_seq2
,
LINENO
(
n
));
}
else
{
PyErr_SetString
(
PyExc_Exceptio
n
,
"malformed 'try' statement"
);
ast_error
(
n
,
"malformed 'try' statement"
);
return
NULL
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment