]> granicus.if.org Git - python/commitdiff
#15094: fix incorrectly placed #endif in _tkinter.c.
authorAndrew Svetlov <andrew.svetlov@gmail.com>
Sun, 22 Jul 2012 10:56:54 +0000 (13:56 +0300)
committerAndrew Svetlov <andrew.svetlov@gmail.com>
Sun, 22 Jul 2012 10:56:54 +0000 (13:56 +0300)
Patch by Serhiy Storchaka.

Misc/NEWS
Modules/_tkinter.c

index a960f2fa29ead6802cb333a701cc9df4c16935f3..62099bfa08535a521feefb54b0a20d55a23cc29e 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -52,6 +52,9 @@ Core and Builtins
 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.
 
index f6cd88d69c67c69c9bd6c3c39527449fcec82916..70f47036d068d41c9a9e30815868ccca191218b8 100644 (file)
@@ -996,8 +996,8 @@ AsObj(PyObject *value)
                              ch);
                 ckfree(FREECAST outbuf);
                 return NULL;
-#endif
             }
+#endif
             outbuf[i] = ch;
         }
         result = Tcl_NewUnicodeObj(outbuf, size);