diff src/if_py_both.h @ 4605:38276cfe40b2 v7.3.1050

updated for version 7.3.1050 Problem: Python: Typo in pyiter_to_tv. Solution: Python patch 11. (ZyX)
author Bram Moolenaar <bram@vim.org>
date Wed, 29 May 2013 22:46:26 +0200
parents 074491a83571
children 70600448f9e7
line wrap: on
line diff
--- a/src/if_py_both.h
+++ b/src/if_py_both.h
@@ -4196,7 +4196,7 @@ pyiter_to_tv(PyObject *obj, typval_T *tv
     if (iterator == NULL)
 	return -1;
 
-    while ((item = PyIter_Next(obj)))
+    while ((item = PyIter_Next(iterator)))
     {
 	li = listitem_alloc();
 	if (li == NULL)