summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2002-12-24 18:10:07 (GMT)
committerGuido van Rossum <guido@python.org>2002-12-24 18:10:07 (GMT)
commit75bfd0585b9f197845fd7a429715807175c33e9f (patch)
tree9bb60c429cec26783cd7204f2e0837d651af6a7b /Modules
parente1bebe9cb0407b12d5e5d10d8f3e2c45ff24444d (diff)
downloadcpython-75bfd0585b9f197845fd7a429715807175c33e9f.zip
cpython-75bfd0585b9f197845fd7a429715807175c33e9f.tar.gz
cpython-75bfd0585b9f197845fd7a429715807175c33e9f.tar.bz2
Add an XXX comment about relative imports.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/cPickle.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/Modules/cPickle.c b/Modules/cPickle.c
index b83e765..9412ad9 100644
--- a/Modules/cPickle.c
+++ b/Modules/cPickle.c
@@ -1713,9 +1713,10 @@ save_global(Picklerobject *self, PyObject *args, PyObject *name)
module_str = PyString_AS_STRING((PyStringObject *)module);
name_str = PyString_AS_STRING((PyStringObject *)global_name);
+ /* XXX This can be doing a relative import. Clearly it shouldn't,
+ but I don't know how to stop it. :-( */
mod = PyImport_ImportModule(module_str);
if (mod == NULL) {
- /* Py_ErrClear(); ?? */
cPickle_ErrFormat(PicklingError,
"Can't pickle %s: it's not found as %s.%s",
"OSS", args, module, global_name);