comparison src/testdir/test_channel_write.py @ 11666:5cd9ba96561d v8.0.0716

patch 8.0.0716: not easy to start Vim cleanly commit https://github.com/vim/vim/commit/c4da113ef98dcfd6f2a088b1693c0317dcb5bf42 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Jul 15 19:39:43 2017 +0200 patch 8.0.0716: not easy to start Vim cleanly Problem: Not easy to start Vim cleanly without changing the viminfo file. Not possible to know whether the -i command line flag was used. Solution: Add the --clean command line argument. Add the 'viminfofile' option. Add "-u DEFAULTS".
author Christian Brabandt <cb@256bit.org>
date Sat, 15 Jul 2017 19:45:03 +0200
parents
children
comparison
equal deleted inserted replaced
11665:d7fe6dc88ea4 11666:5cd9ba96561d
1 #!/usr/bin/python
2 #
3 # Program that writes a number to stdout repeatedly
4 #
5 # This requires Python 2.6 or later.
6
7 from __future__ import print_function
8 import sys
9 import time
10
11 if __name__ == "__main__":
12
13 done = 0
14 while done < 10:
15 done = done + 1
16 print(done)
17 sys.stdout.flush()
18 time.sleep(0.05) # sleep 50 msec