summaryrefslogtreecommitdiff
path: root/Objects/moduleobject.c
diff options
context:
space:
mode:
authorBrett Cannon <brett@python.org>2012-04-29 14:38:11 -0400
committerBrett Cannon <brett@python.org>2012-04-29 14:38:11 -0400
commit50f76bdf6a49c9e80d8c092db2e93fc8c02ecb5c (patch)
treef6f90b9a9b9ed1a838a547b548779687ffc441b6 /Objects/moduleobject.c
parent7c98a7f16877024b603d709127603549b85c3e19 (diff)
downloadcpython-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.c2
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);