]> granicus.if.org Git - python/commitdiff
No declarations in the middle of a block (fixes compile under Windows)
authorAntoine Pitrou <solipsis@pitrou.net>
Sun, 31 Oct 2010 21:03:01 +0000 (21:03 +0000)
committerAntoine Pitrou <solipsis@pitrou.net>
Sun, 31 Oct 2010 21:03:01 +0000 (21:03 +0000)
Modules/operator.c

index 48bdae07d39be4f9e8f92e0ae89477e5553b0682..866ec3a761e4722ef7452357d3efc5bfea7a9424 100644 (file)
@@ -428,15 +428,15 @@ attrgetter_new(PyTypeObject *type, PyObject *args, PyObject *kwds)
         } else { /* make it a tuple of non-dotted attrnames */
             PyObject *attr_chain = PyTuple_New(dot_count + 1);
             PyObject *attr_chain_item;
+            Py_ssize_t unibuff_from = 0;
+            Py_ssize_t unibuff_till = 0;
+            Py_ssize_t attr_chain_idx = 0;
 
             if (attr_chain == NULL) {
                 Py_DECREF(attr);
                 return NULL;
             }
 
-            Py_ssize_t unibuff_from = 0;
-            Py_ssize_t unibuff_till = 0;
-            Py_ssize_t attr_chain_idx = 0;
             for (; dot_count > 0; --dot_count) {
                 while (item_buffer[unibuff_till] != (Py_UNICODE)'.') {
                     ++unibuff_till;