diff options
Diffstat (limited to 'meta/recipes-devtools/python/python/04-default-is-optimized.patch')
-rw-r--r-- | meta/recipes-devtools/python/python/04-default-is-optimized.patch | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/meta/recipes-devtools/python/python/04-default-is-optimized.patch b/meta/recipes-devtools/python/python/04-default-is-optimized.patch index 805f4f696c..c4617ab863 100644 --- a/meta/recipes-devtools/python/python/04-default-is-optimized.patch +++ b/meta/recipes-devtools/python/python/04-default-is-optimized.patch | |||
@@ -3,10 +3,10 @@ | |||
3 | # of opt-out. | 3 | # of opt-out. |
4 | # Signed-Off: Michael 'Mickey' Lauer <mickey@vanille-media.de> | 4 | # Signed-Off: Michael 'Mickey' Lauer <mickey@vanille-media.de> |
5 | 5 | ||
6 | Index: Python-2.6.1/Python/compile.c | 6 | Index: Python-2.6.6/Python/compile.c |
7 | =================================================================== | 7 | =================================================================== |
8 | --- Python-2.6.1.orig/Python/compile.c | 8 | --- Python-2.6.6.orig/Python/compile.c |
9 | +++ Python-2.6.1/Python/compile.c | 9 | +++ Python-2.6.6/Python/compile.c |
10 | @@ -32,7 +32,7 @@ | 10 | @@ -32,7 +32,7 @@ |
11 | #include "symtable.h" | 11 | #include "symtable.h" |
12 | #include "opcode.h" | 12 | #include "opcode.h" |
@@ -16,10 +16,10 @@ Index: Python-2.6.1/Python/compile.c | |||
16 | 16 | ||
17 | #define DEFAULT_BLOCK_SIZE 16 | 17 | #define DEFAULT_BLOCK_SIZE 16 |
18 | #define DEFAULT_BLOCKS 8 | 18 | #define DEFAULT_BLOCKS 8 |
19 | Index: Python-2.6.1/Modules/main.c | 19 | Index: Python-2.6.6/Modules/main.c |
20 | =================================================================== | 20 | =================================================================== |
21 | --- Python-2.6.1.orig/Modules/main.c | 21 | --- Python-2.6.6.orig/Modules/main.c |
22 | +++ Python-2.6.1/Modules/main.c | 22 | +++ Python-2.6.6/Modules/main.c |
23 | @@ -40,7 +40,7 @@ static char **orig_argv; | 23 | @@ -40,7 +40,7 @@ static char **orig_argv; |
24 | static int orig_argc; | 24 | static int orig_argc; |
25 | 25 | ||
@@ -39,14 +39,14 @@ Index: Python-2.6.1/Modules/main.c | |||
39 | -Q arg : division options: -Qold (default), -Qwarn, -Qwarnall, -Qnew\n\ | 39 | -Q arg : division options: -Qold (default), -Qwarn, -Qwarnall, -Qnew\n\ |
40 | -s : don't add user site directory to sys.path; also PYTHONNOUSERSITE\n\ | 40 | -s : don't add user site directory to sys.path; also PYTHONNOUSERSITE\n\ |
41 | -S : don't imply 'import site' on initialization\n\ | 41 | -S : don't imply 'import site' on initialization\n\ |
42 | @@ -353,8 +352,8 @@ Py_Main(int argc, char **argv) | 42 | @@ -328,8 +327,8 @@ Py_Main(int argc, char **argv) |
43 | 43 | ||
44 | /* case 'J': reserved for Jython */ | 44 | /* case 'J': reserved for Jython */ |
45 | 45 | ||
46 | - case 'O': | 46 | - case 'O': |
47 | - Py_OptimizeFlag++; | 47 | - Py_OptimizeFlag++; |
48 | + case 'N': | 48 | + case 'N': |
49 | + Py_OptimizeFlag=0; | 49 | + Py_OptimizeFlag=0; |
50 | break; | 50 | break; |
51 | 51 | ||
52 | case 'B': | 52 | case 'B': |