summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorBrett Cannon <brett@python.org>2012-04-29 18:38:11 (GMT)
committerBrett Cannon <brett@python.org>2012-04-29 18:38:11 (GMT)
commit62228dbd6c3b7be4199756c42a21429664c053e6 (patch)
tree3d63ba456c809bd1f0eae2d9dee4bf8ae7dad31b /Objects
parent1fc3ec91cc3e86035179db3e476ae7cd36ca6716 (diff)
downloadcpython-62228dbd6c3b7be4199756c42a21429664c053e6.zip
cpython-62228dbd6c3b7be4199756c42a21429664c053e6.tar.gz
cpython-62228dbd6c3b7be4199756c42a21429664c053e6.tar.bz2
Issues #13959, 14647: Re-implement imp.reload() in Lib/imp.py.
Thanks to Eric Snow for the patch.
Diffstat (limited to 'Objects')
-rw-r--r--Objects/moduleobject.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/moduleobject.c b/Objects/moduleobject.c
index b69bce6..7655f15 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);