summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2000-05-01 17:55:15 (GMT)
committerGuido van Rossum <guido@python.org>2000-05-01 17:55:15 (GMT)
commitb16d197d661915bf16c84e06cb07e1f7a934ad10 (patch)
tree3b2514117527484aabe555d6834b3e843ec94d23
parentfdc8bdb67b7a82980d5844cb86b6eb9b48d4ec38 (diff)
downloadcpython-b16d197d661915bf16c84e06cb07e1f7a934ad10.zip
cpython-b16d197d661915bf16c84e06cb07e1f7a934ad10.tar.gz
cpython-b16d197d661915bf16c84e06cb07e1f7a934ad10.tar.bz2
Marc-Andre Lemburg:
Added Py_UnicodeFlag for use by the -U command line option.
-rw-r--r--Include/pydebug.h1
-rw-r--r--Python/pythonrun.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/Include/pydebug.h b/Include/pydebug.h
index a848a15..4315f50 100644
--- a/Include/pydebug.h
+++ b/Include/pydebug.h
@@ -43,6 +43,7 @@ extern DL_IMPORT(int) Py_NoSiteFlag;
extern DL_IMPORT(int) Py_UseClassExceptionsFlag;
extern DL_IMPORT(int) Py_FrozenFlag;
extern DL_IMPORT(int) Py_TabcheckFlag;
+extern DL_IMPORT(int) Py_UnicodeFlag;
DL_IMPORT(void) Py_FatalError Py_PROTO((char *));
diff --git a/Python/pythonrun.c b/Python/pythonrun.c
index 17d569d..a4c986e 100644
--- a/Python/pythonrun.c
+++ b/Python/pythonrun.c
@@ -88,6 +88,7 @@ int Py_InteractiveFlag; /* Needed by Py_FdIsInteractive() below */
int Py_NoSiteFlag; /* Suppress 'import site' */
int Py_UseClassExceptionsFlag = 1; /* Needed by bltinmodule.c */
int Py_FrozenFlag; /* Needed by getpath.c */
+int Py_UnicodeFlag = 0; /* Needed by compile.c */
static int initialized = 0;