Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 0d126cf

Browse filesBrowse files
committed
address review
1 parent 77b9317 commit 0d126cf
Copy full SHA for 0d126cf

File tree

3 files changed

+4
-3
lines changed
Filter options

3 files changed

+4
-3
lines changed
+2-1Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
Move constant folding to the peephole optimizer. Rename AST optimization
2-
related files/structs/functions.
2+
related files (ast_opt.c -> ast_process.c), structs (_PyASTOptimizeState -> _PyASTProcessState)
3+
and functions (_PyAST_Optimize -> _PyAST_Process, _PyCompile_AstOptimize -> _PyCompile_AstProcess).

‎Python/ast_process.c

Copy file name to clipboardExpand all lines: Python/ast_process.c
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -936,7 +936,7 @@ astfold_type_param(type_param_ty node_, PyArena *ctx_, _PyASTProcessState *state
936936

937937
int
938938
_PyAST_Process(mod_ty mod, PyArena *arena, PyObject *filename, int optimize,
939-
int ff_features, int syntax_check_only)
939+
int ff_features, int syntax_check_only)
940940
{
941941
_PyASTProcessState state;
942942
memset(&state, 0, sizeof(_PyASTProcessState));

‎Python/compile.c

Copy file name to clipboardExpand all lines: Python/compile.c
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1450,7 +1450,7 @@ _PyAST_Compile(mod_ty mod, PyObject *filename, PyCompilerFlags *pflags,
14501450

14511451
int
14521452
_PyCompile_AstProcess(mod_ty mod, PyObject *filename, PyCompilerFlags *cf,
1453-
int optimize, PyArena *arena, int no_const_folding)
1453+
int optimize, PyArena *arena, int no_const_folding)
14541454
{
14551455
_PyFutureFeatures future;
14561456
if (!_PyFuture_FromAST(mod, filename, &future)) {

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.