summaryrefslogtreecommitdiffstats
path: root/Modules/parsermodule.c
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2001-07-19 20:17:15 (GMT)
committerFred Drake <fdrake@acm.org>2001-07-19 20:17:15 (GMT)
commit78bdb9bc46220449fae85fa643e1ccc33c2462e5 (patch)
treedd44f1060b62fda76b205b4528c2658c26a3e07d /Modules/parsermodule.c
parent08f8dd6d0caead7891d1a70f956409a88d0ed5a6 (diff)
downloadcpython-78bdb9bc46220449fae85fa643e1ccc33c2462e5.zip
cpython-78bdb9bc46220449fae85fa643e1ccc33c2462e5.tar.gz
cpython-78bdb9bc46220449fae85fa643e1ccc33c2462e5.tar.bz2
Elaborate a comment.
Diffstat (limited to 'Modules/parsermodule.c')
-rw-r--r--Modules/parsermodule.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/Modules/parsermodule.c b/Modules/parsermodule.c
index cc1a44f..2f2d8b0 100644
--- a/Modules/parsermodule.c
+++ b/Modules/parsermodule.c
@@ -2855,7 +2855,10 @@ initparser(void)
PyDict_SetItemString(dict, "__version__",
PyString_FromString(parser_version_string));
- /* register to support pickling */
+ /* Register to support pickling.
+ * If this fails, the import of this module will fail because an
+ * exception will be raised here; should we clear the exception?
+ */
module = PyImport_ImportModule("copy_reg");
if (module != NULL) {
PyObject *func, *pickler;