Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 75bfd05

Browse files
committed
Add an XXX comment about relative imports.
1 parent e1bebe9 commit 75bfd05

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Modules/cPickle.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1713,9 +1713,10 @@ save_global(Picklerobject *self, PyObject *args, PyObject *name)
17131713
module_str = PyString_AS_STRING((PyStringObject *)module);
17141714
name_str = PyString_AS_STRING((PyStringObject *)global_name);
17151715

1716+
/* XXX This can be doing a relative import. Clearly it shouldn't,
1717+
but I don't know how to stop it. :-( */
17161718
mod = PyImport_ImportModule(module_str);
17171719
if (mod == NULL) {
1718-
/* Py_ErrClear(); ?? */
17191720
cPickle_ErrFormat(PicklingError,
17201721
"Can't pickle %s: it's not found as %s.%s",
17211722
"OSS", args, module, global_name);

0 commit comments

Comments
 (0)