Mercurial > vim
view src/testdir/test_channel_write.py @ 22435:166a0f17b05e v8.2.1766
patch 8.2.1766: Vim9: Some tests are still using :let
Commit: https://github.com/vim/vim/commit/7a9cbca00a8ec53306f8a5852e332feb79091793
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Sep 27 22:47:05 2020 +0200
patch 8.2.1766: Vim9: Some tests are still using :let
Problem: Vim9: Some tests are still using :let.
Solution: Change the last few declarations to use :var.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 27 Sep 2020 23:00:04 +0200 |
parents | 5cd9ba96561d |
children |
line wrap: on
line source
#!/usr/bin/python # # Program that writes a number to stdout repeatedly # # This requires Python 2.6 or later. from __future__ import print_function import sys import time if __name__ == "__main__": done = 0 while done < 10: done = done + 1 print(done) sys.stdout.flush() time.sleep(0.05) # sleep 50 msec