diff options
author | Christian Heimes <christian@cheimes.de> | 2013-10-11 23:27:08 (GMT) |
---|---|---|
committer | Christian Heimes <christian@cheimes.de> | 2013-10-11 23:27:08 (GMT) |
commit | 2582762b1b76a9bbe11f8ba5fc2a350157526050 (patch) | |
tree | 2842450f57aa729c32fdba59c98558f0ad324650 /Modules/posixmodule.c | |
parent | 1a5fb4e3c1d99a0abbb9f1e9dd6f9322102ee812 (diff) | |
download | cpython-2582762b1b76a9bbe11f8ba5fc2a350157526050.zip cpython-2582762b1b76a9bbe11f8ba5fc2a350157526050.tar.gz cpython-2582762b1b76a9bbe11f8ba5fc2a350157526050.tar.bz2 |
Issue #19209: Remove import of copyreg from the os module to speed up
interpreter startup. stat_result and statvfs_result are now hard-coded to
reside in the os module.
The patch is based on Victor Stinner's patch.
Diffstat (limited to 'Modules/posixmodule.c')
-rw-r--r-- | Modules/posixmodule.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c index df0d81b..2779852 100644 --- a/Modules/posixmodule.c +++ b/Modules/posixmodule.c @@ -11974,7 +11974,7 @@ INITFUNC(void) return NULL; #endif - stat_result_desc.name = MODNAME ".stat_result"; + stat_result_desc.name = "os.stat_result"; /* see issue #19209 */ stat_result_desc.fields[7].name = PyStructSequence_UnnamedField; stat_result_desc.fields[8].name = PyStructSequence_UnnamedField; stat_result_desc.fields[9].name = PyStructSequence_UnnamedField; @@ -11983,7 +11983,7 @@ INITFUNC(void) structseq_new = StatResultType.tp_new; StatResultType.tp_new = statresult_new; - statvfs_result_desc.name = MODNAME ".statvfs_result"; + statvfs_result_desc.name = "os.statvfs_result"; /* see issue #19209 */ if (PyStructSequence_InitType2(&StatVFSResultType, &statvfs_result_desc) < 0) return NULL; |