Thank you for comments.
I'll try to improve ;)

2017-01-15 21:54 GMT+09:00 Bram Moolenaar <[email protected]>:
>
> Taro Muraoka wrote:
>
>> Hi the list and Bram.
>>
>> I suggest to add checker of using Python 2.x
>>
>> Python 2 will be retire 2020, and it is not so far.
>> https://pythonclock.org/
>> To stop using Python 2.x suddenly is not easy for Vim users.
>> Because it is difficult to know which scripts are using Python 2.
>> So vim may help to detect it.
>>
>> I have wrote a patch for proof of the concept.
>> Please check it:
>> https://gist.github.com/koron/90f6b56b73c211e059a3b8ab1db335a9
>>
>> My patch do three things:
>>
>> 1. Show a waring message at only once when Python 2.x is used.
>> 2. The warning could be suppressed by 'nopy2warn' option.
>> 3. :py2usingfrom shows list of files which use Python 2.x
>>
>> Names for command and option which I added are not good, I think.
>> Please replace those by better names.
>
> Can be useful, if the user cares about avoiding Python 2.
> But it should not warn by default.
>
> It should be possible to add a flag in scriptitem_T.  And the line
> number would be useful too.  The sourcing_lnum has the value.
>
> --
> MAN:     You don't frighten us, English pig-dog!  Go and boil your bottoms,
>          son of a silly person.  I blow my nose on you, so-called Arthur-king,
>          you and your silly English K...kaniggets.
>    He puts hands to his ears and blows a raspberry.
>                  "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
>
>  /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
> ///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
> \\\  an exciting new programming language -- http://www.Zimbu.org        ///
>  \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///



-- 
MURAOKA Taro <[email protected]>

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui