diff options
| author | Brett Cannon <brett@python.org> | 2012-04-29 14:38:11 -0400 |
|---|---|---|
| committer | Brett Cannon <brett@python.org> | 2012-04-29 14:38:11 -0400 |
| commit | 50f76bdf6a49c9e80d8c092db2e93fc8c02ecb5c (patch) | |
| tree | f6f90b9a9b9ed1a838a547b548779687ffc441b6 /Objects/moduleobject.c | |
| parent | 7c98a7f16877024b603d709127603549b85c3e19 (diff) | |
| download | cpython-50f76bdf6a49c9e80d8c092db2e93fc8c02ecb5c.tar.gz | |
Issues #13959, 14647: Re-implement imp.reload() in Lib/imp.py.
Thanks to Eric Snow for the patch.
Diffstat (limited to 'Objects/moduleobject.c')
| -rw-r--r-- | Objects/moduleobject.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/moduleobject.c b/Objects/moduleobject.c index b69bce6e96..7655f15763 100644 --- a/Objects/moduleobject.c +++ b/Objects/moduleobject.c @@ -285,7 +285,7 @@ _PyModule_Clear(PyObject *m) pos = 0; while (PyDict_Next(d, &pos, &key, &value)) { if (value != Py_None && PyUnicode_Check(key)) { - if (PyUnicode_READ_CHAR(key, 0) == '_' && + if (PyUnicode_READ_CHAR(key, 0) == '_' && PyUnicode_READ_CHAR(key, 1) != '_') { if (Py_VerboseFlag > 1) { const char *s = _PyUnicode_AsString(key); |
