diff runtime/doc/if_pyth.txt @ 14864:40ef13331e02

Update runtime files. commit https://github.com/vim/vim/commit/95bafa296ae97bf420d5c74dd6db517b404c5df7 Author: Bram Moolenaar <Bram@vim.org> Date: Tue Oct 2 13:26:25 2018 +0200 Update runtime files.
author Christian Brabandt <cb@256bit.org>
date Tue, 02 Oct 2018 13:30:07 +0200
parents 34fd018452ed
children 0e473e9e70c2
line wrap: on
line diff
--- a/runtime/doc/if_pyth.txt
+++ b/runtime/doc/if_pyth.txt
@@ -60,9 +60,10 @@ Example: >
 	endfunction
 
 To see what version of Python you have: >
-	:python import sys
 	:python print(sys.version)
 
+There is no need to import sys, it's done by default.
+
 Note: Python is very sensitive to the indenting.  Make sure the "class" line
 and "EOF" do not have any indent.
 
@@ -110,7 +111,6 @@ Python commands cannot be used in the |s
 
 To pass arguments you need to set sys.argv[] explicitly.  Example: >
 
-	:python import sys
 	:python sys.argv = ["foo", "bar"]
 	:pyfile myscript.py