[Python-checkins] cpython: Issue #22127: fix typo.

martin.v.loewis python-checkins at python.org
Tue Aug 5 16:14:02 CEST 2014


http://hg.python.org/cpython/rev/49085b746029
changeset:   92014:49085b746029
user:        Martin v. Löwis <martin at v.loewis.de>
date:        Tue Aug 05 16:13:50 2014 +0200
summary:
  Issue #22127: fix typo.

files:
  Modules/socketmodule.c |  2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)


diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c
--- a/Modules/socketmodule.c
+++ b/Modules/socketmodule.c
@@ -1263,7 +1263,7 @@
             return 0;
         }
         if (!PyBytes_Check(obj3)) {
-            Py_DECREF(obj2);
+            Py_DECREF(obj3);
             PyErr_SetString(PyExc_TypeError, "encoding of hostname failed to return bytes");
             return 0;
         }

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list