[Python-checkins] cpython: #15094: fix incorrectly placed #endif in _tkinter.c.

andrew.svetlov python-checkins at python.org
Sun Jul 22 12:57:22 CEST 2012


http://hg.python.org/cpython/rev/657673a37dd3
changeset:   78242:657673a37dd3
user:        Andrew Svetlov <andrew.svetlov at gmail.com>
date:        Sun Jul 22 13:56:54 2012 +0300
summary:
  #15094: fix incorrectly placed #endif in _tkinter.c.

Patch by Serhiy Storchaka.

files:
  Misc/NEWS          |  3 +++
  Modules/_tkinter.c |  2 +-
  2 files changed, 4 insertions(+), 1 deletions(-)


diff --git a/Misc/NEWS b/Misc/NEWS
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -52,6 +52,9 @@
 Library
 -------
 
+- Issue #15094: Incorrectly placed #endif in _tkinter.c.
+  Patch by Serhiy Storchaka.
+
 - Issue #13922: argparse no longer incorrectly strips '--'s that appear
   after the first one.
 
diff --git a/Modules/_tkinter.c b/Modules/_tkinter.c
--- a/Modules/_tkinter.c
+++ b/Modules/_tkinter.c
@@ -996,8 +996,8 @@
                              ch);
                 ckfree(FREECAST outbuf);
                 return NULL;
+            }
 #endif
-            }
             outbuf[i] = ch;
         }
         result = Tcl_NewUnicodeObj(outbuf, size);

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


More information about the Python-checkins mailing list