summaryrefslogtreecommitdiff
path: root/Python/frozen.c
diff options
context:
space:
mode:
authorEric Snow <ericsnowcurrently@gmail.com>2021-09-15 14:15:32 -0600
committerGitHub <noreply@github.com>2021-09-15 14:15:32 -0600
commit3814e2036d96e2b6c69afce61926bb0a2a34d2d9 (patch)
tree07370122389b21359fabbd658bc0acafde69d127 /Python/frozen.c
parentd081eab7df176453c9834b852a579e1ada0354b2 (diff)
downloadcpython-git-3814e2036d96e2b6c69afce61926bb0a2a34d2d9.tar.gz
bpo-45019: Clean up the frozen __hello__ module. (gh-28374)
Here's one more small cleanup that should have been in PR gh-28319. We eliminate stdout side-effects from importing the frozen __hello__ module, and update tests accordingly. We also move the module's source file into Lib/ from Toos/freeze/flag.py. https://bugs.python.org/issue45019
Diffstat (limited to 'Python/frozen.c')
-rw-r--r--Python/frozen.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/Python/frozen.c b/Python/frozen.c
index eef0f453f6..cf384d3176 100644
--- a/Python/frozen.c
+++ b/Python/frozen.c
@@ -49,7 +49,7 @@
#include "frozen_modules/ntpath.h"
#include "frozen_modules/posixpath.h"
#include "frozen_modules/stat.h"
-#include "frozen_modules/hello.h"
+#include "frozen_modules/__hello__.h"
/* End includes */
/* Note that a negative size indicates a package. */
@@ -74,9 +74,9 @@ static const struct _frozen _PyImport_FrozenModules[] = {
{"stat", _Py_M__stat, (int)sizeof(_Py_M__stat)},
/* Test module */
- {"__hello__", _Py_M__hello, (int)sizeof(_Py_M__hello)},
- {"__phello__", _Py_M__hello, -(int)sizeof(_Py_M__hello)},
- {"__phello__.spam", _Py_M__hello, (int)sizeof(_Py_M__hello)},
+ {"__hello__", _Py_M____hello__, (int)sizeof(_Py_M____hello__)},
+ {"__phello__", _Py_M____hello__, -(int)sizeof(_Py_M____hello__)},
+ {"__phello__.spam", _Py_M____hello__, (int)sizeof(_Py_M____hello__)},
{0, 0, 0} /* sentinel */
};