|
Karsten Hopp |
2e50f6 |
To: vim_dev@googlegroups.com
|
|
Karsten Hopp |
2e50f6 |
Subject: Patch 7.3.1237
|
|
Karsten Hopp |
2e50f6 |
Fcc: outbox
|
|
Karsten Hopp |
2e50f6 |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
Karsten Hopp |
2e50f6 |
Mime-Version: 1.0
|
|
Karsten Hopp |
2e50f6 |
Content-Type: text/plain; charset=UTF-8
|
|
Karsten Hopp |
2e50f6 |
Content-Transfer-Encoding: 8bit
|
|
Karsten Hopp |
2e50f6 |
------------
|
|
Karsten Hopp |
2e50f6 |
|
|
Karsten Hopp |
2e50f6 |
Patch 7.3.1237
|
|
Karsten Hopp |
2e50f6 |
Problem: Python: non-import errors not handled correctly.
|
|
Karsten Hopp |
2e50f6 |
Solution: Let non-ImportError exceptions pass the finder. (ZyX)
|
|
Karsten Hopp |
2e50f6 |
Files: src/if_py_both.h, src/testdir/test86.ok, src/testdir/test87.ok
|
|
Karsten Hopp |
2e50f6 |
|
|
Karsten Hopp |
2e50f6 |
|
|
Karsten Hopp |
2e50f6 |
*** ../vim-7.3.1236/src/if_py_both.h 2013-06-23 16:35:32.000000000 +0200
|
|
Karsten Hopp |
2e50f6 |
--- src/if_py_both.h 2013-06-23 16:38:39.000000000 +0200
|
|
Karsten Hopp |
2e50f6 |
***************
|
|
Karsten Hopp |
2e50f6 |
*** 1199,1204 ****
|
|
Karsten Hopp |
2e50f6 |
--- 1199,1212 ----
|
|
Karsten Hopp |
2e50f6 |
|
|
Karsten Hopp |
2e50f6 |
if (!module)
|
|
Karsten Hopp |
2e50f6 |
{
|
|
Karsten Hopp |
2e50f6 |
+ if (PyErr_Occurred())
|
|
Karsten Hopp |
2e50f6 |
+ {
|
|
Karsten Hopp |
2e50f6 |
+ if (PyErr_ExceptionMatches(PyExc_ImportError))
|
|
Karsten Hopp |
2e50f6 |
+ PyErr_Clear();
|
|
Karsten Hopp |
2e50f6 |
+ else
|
|
Karsten Hopp |
2e50f6 |
+ return NULL;
|
|
Karsten Hopp |
2e50f6 |
+ }
|
|
Karsten Hopp |
2e50f6 |
+
|
|
Karsten Hopp |
2e50f6 |
Py_INCREF(Py_None);
|
|
Karsten Hopp |
2e50f6 |
return Py_None;
|
|
Karsten Hopp |
2e50f6 |
}
|
|
Karsten Hopp |
2e50f6 |
*** ../vim-7.3.1236/src/testdir/test86.ok 2013-06-23 16:35:32.000000000 +0200
|
|
Karsten Hopp |
2e50f6 |
--- src/testdir/test86.ok 2013-06-23 16:38:39.000000000 +0200
|
|
Karsten Hopp |
2e50f6 |
***************
|
|
Karsten Hopp |
2e50f6 |
*** 497,503 ****
|
|
Karsten Hopp |
2e50f6 |
> import
|
|
Karsten Hopp |
2e50f6 |
import xxx_no_such_module_xxx:ImportError:('No module named xxx_no_such_module_xxx',)
|
|
Karsten Hopp |
2e50f6 |
import failing_import:ImportError:('No module named failing_import',)
|
|
Karsten Hopp |
2e50f6 |
! import failing:ImportError:('No module named failing',)
|
|
Karsten Hopp |
2e50f6 |
> Dictionary
|
|
Karsten Hopp |
2e50f6 |
>> DictionaryConstructor
|
|
Karsten Hopp |
2e50f6 |
vim.Dictionary("abcI"):ValueError:('expected sequence element of size 2, but got sequence of size 1',)
|
|
Karsten Hopp |
2e50f6 |
--- 497,503 ----
|
|
Karsten Hopp |
2e50f6 |
> import
|
|
Karsten Hopp |
2e50f6 |
import xxx_no_such_module_xxx:ImportError:('No module named xxx_no_such_module_xxx',)
|
|
Karsten Hopp |
2e50f6 |
import failing_import:ImportError:('No module named failing_import',)
|
|
Karsten Hopp |
2e50f6 |
! import failing:NotImplementedError:()
|
|
Karsten Hopp |
2e50f6 |
> Dictionary
|
|
Karsten Hopp |
2e50f6 |
>> DictionaryConstructor
|
|
Karsten Hopp |
2e50f6 |
vim.Dictionary("abcI"):ValueError:('expected sequence element of size 2, but got sequence of size 1',)
|
|
Karsten Hopp |
2e50f6 |
*** ../vim-7.3.1236/src/testdir/test87.ok 2013-06-23 16:35:32.000000000 +0200
|
|
Karsten Hopp |
2e50f6 |
--- src/testdir/test87.ok 2013-06-23 16:38:39.000000000 +0200
|
|
Karsten Hopp |
2e50f6 |
***************
|
|
Karsten Hopp |
2e50f6 |
*** 486,492 ****
|
|
Karsten Hopp |
2e50f6 |
> import
|
|
Karsten Hopp |
2e50f6 |
import xxx_no_such_module_xxx:(<class 'ImportError'>, ImportError('No module named xxx_no_such_module_xxx',))
|
|
Karsten Hopp |
2e50f6 |
import failing_import:(<class 'ImportError'>, ImportError('No module named failing_import',))
|
|
Karsten Hopp |
2e50f6 |
! import failing:(<class 'ImportError'>, ImportError('No module named failing',))
|
|
Karsten Hopp |
2e50f6 |
> Dictionary
|
|
Karsten Hopp |
2e50f6 |
>> DictionaryConstructor
|
|
Karsten Hopp |
2e50f6 |
vim.Dictionary("abcI"):(<class 'ValueError'>, ValueError('expected sequence element of size 2, but got sequence of size 1',))
|
|
Karsten Hopp |
2e50f6 |
--- 486,492 ----
|
|
Karsten Hopp |
2e50f6 |
> import
|
|
Karsten Hopp |
2e50f6 |
import xxx_no_such_module_xxx:(<class 'ImportError'>, ImportError('No module named xxx_no_such_module_xxx',))
|
|
Karsten Hopp |
2e50f6 |
import failing_import:(<class 'ImportError'>, ImportError('No module named failing_import',))
|
|
Karsten Hopp |
2e50f6 |
! import failing:(<class 'NotImplementedError'>, NotImplementedError())
|
|
Karsten Hopp |
2e50f6 |
> Dictionary
|
|
Karsten Hopp |
2e50f6 |
>> DictionaryConstructor
|
|
Karsten Hopp |
2e50f6 |
vim.Dictionary("abcI"):(<class 'ValueError'>, ValueError('expected sequence element of size 2, but got sequence of size 1',))
|
|
Karsten Hopp |
2e50f6 |
*** ../vim-7.3.1236/src/version.c 2013-06-23 16:35:32.000000000 +0200
|
|
Karsten Hopp |
2e50f6 |
--- src/version.c 2013-06-23 16:38:20.000000000 +0200
|
|
Karsten Hopp |
2e50f6 |
***************
|
|
Karsten Hopp |
2e50f6 |
*** 730,731 ****
|
|
Karsten Hopp |
2e50f6 |
--- 730,733 ----
|
|
Karsten Hopp |
2e50f6 |
{ /* Add new patch number below this line */
|
|
Karsten Hopp |
2e50f6 |
+ /**/
|
|
Karsten Hopp |
2e50f6 |
+ 1237,
|
|
Karsten Hopp |
2e50f6 |
/**/
|
|
Karsten Hopp |
2e50f6 |
|
|
Karsten Hopp |
2e50f6 |
--
|
|
Karsten Hopp |
2e50f6 |
This is an airconditioned room, do not open Windows.
|
|
Karsten Hopp |
2e50f6 |
|
|
Karsten Hopp |
2e50f6 |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
Karsten Hopp |
2e50f6 |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
Karsten Hopp |
2e50f6 |
\\\ an exciting new programming language -- http://www.Zimbu.org ///
|
|
Karsten Hopp |
2e50f6 |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|