comparison src/if_python.c @ 3032:e4f3fa1a474e v7.3.288

updated for version 7.3.288 Problem: has('python') may give an error message for not being able to load the library after using python3. Solution: Only give the error when the verbose argument is true.
author Bram Moolenaar <bram@vim.org>
date Sun, 28 Aug 2011 16:00:19 +0200
parents fe9c7da98b5e
children c052f3b79b99
comparison
equal deleted inserted replaced
3031:256ce71055a9 3032:e4f3fa1a474e
366 /* Can't have Python and Python3 loaded at the same time. 366 /* Can't have Python and Python3 loaded at the same time.
367 * It cause a crash, because RTLD_GLOBAL is needed for 367 * It cause a crash, because RTLD_GLOBAL is needed for
368 * standard C extension libraries of one or both python versions. */ 368 * standard C extension libraries of one or both python versions. */
369 if (python3_loaded()) 369 if (python3_loaded())
370 { 370 {
371 EMSG(_("E836: This Vim cannot execute :python after using :py3")); 371 if (verbose)
372 EMSG(_("E836: This Vim cannot execute :python after using :py3"));
372 return FAIL; 373 return FAIL;
373 } 374 }
374 #endif 375 #endif
375 376
376 if (hinstPython) 377 if (hinstPython)